USBFS_Finalize
Finalizes the USB API sequence.
This is the last function required in any sequence of USB-related calls. It frees context, device handler, attaches the kernel driver if required, and frees any memory that was allocated for the FS header.
Synopsis
int USBFS_Finalize(
void *ctx,
void *handlev,
int *kernelDriverAttachedFlag,
uint8_t **header
);
Input Parameters
| Parameter | Description |
|---|---|
ctx
|
Current context |
handlev
|
Device handle |
header
|
Header string |
kernelDriverAttachedFlag
|
If the kernel driver was attached before running the operation, this value will be TRUE. |
Input Requirements
Refer to the FM sample usbdemo for the call sequence requirements.
Return Value
The function returns CKR_USB_OK if successful, or one of the error codes in USB API Vendor-Defined Error Codes.