USBFS_WriteData
Writes the specified number of bytes (dataLen) to the USB file system, starting from block 1. This will overwrite the existing contents.
Synopsis
int USBFS_WriteData( void *handle, dev_properties_t *dp, capacity_t *cap, uint8_t *data, uint32_t dataLen, uint8_t *header );
Input Parameters
Parameter | Description |
---|---|
cap
|
Capacity |
data
|
Data string |
dataLen
|
Length of the data string to follow |
dp
|
Structure |
handle
|
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.