USBFS_Destroy

Destroys the existing USB file system, including label and size.

Synopsis

int USBFS_Destroy(
    void *handle, 
    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.