USBFS_ReadData

Reads specified number of bytes from the USB file system to the HSM memory.

Synopsis

int USBFS_ReadData(
    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.