USBFS_Close

Writes the header from the HSM memory back to the USB file system.

Synopsis

int USBFS_Close(
    void *handlev, 
    dev_properties_t *dp, 
    capacity_t *cap, 
    uint8_t *header
);

Input Parameters

Parameter Description
cap Capacity
dp Structure
handlev Device handle
header Pointer to file system block 0

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.