RA Flexible Software Package Documentation
Release v5.7.0
|
|
Interface for USB HMSC functions.
The USB HMSC interface provides USB HMSC functionality.
Data Structures | |
struct | usb_hmsc_api_t |
Enumerations | |
enum | usb_atapi_t |
enum | usb_csw_result_t |
struct usb_hmsc_api_t |
USB HMSC functions implemented at the HAL layer will follow this API.
Data Fields | |
fsp_err_t(* | storageCommand )(usb_ctrl_t *const p_ctrl, uint8_t *buf, uint8_t command, uint8_t destination) |
fsp_err_t(* | driveNumberGet )(usb_ctrl_t *const p_ctrl, uint8_t *p_drive, uint8_t destination) |
fsp_err_t(* | storageReadSector )(uint16_t drive_number, uint8_t *const buff, uint32_t sector_number, uint16_t sector_count) |
fsp_err_t(* | storageWriteSector )(uint16_t drive_number, uint8_t const *const buff, uint32_t sector_number, uint16_t sector_count) |
fsp_err_t(* | semaphoreGet )(void) |
fsp_err_t(* | semaphoreRelease )(void) |
fsp_err_t(* usb_hmsc_api_t::storageCommand) (usb_ctrl_t *const p_ctrl, uint8_t *buf, uint8_t command, uint8_t destination) |
Processing for MassStorage(ATAPI) command.
[in] | p_ctrl | Pointer to control structure. |
[in] | *buf | Pointer to the buffer area to store the transfer data. |
[in] | command | ATAPI command. |
[in] | destination | Represents a device address. |
fsp_err_t(* usb_hmsc_api_t::driveNumberGet) (usb_ctrl_t *const p_ctrl, uint8_t *p_drive, uint8_t destination) |
Get number of Storage drive.
[in] | p_ctrl | Pointer to control structure. |
[out] | p_drive | Store address for Drive No. |
[in] | destination | Represents a device address. |
fsp_err_t(* usb_hmsc_api_t::storageReadSector) (uint16_t drive_number, uint8_t *const buff, uint32_t sector_number, uint16_t sector_count) |
Read sector information.
[in] | drive_number | Drive number. |
[out] | *buff | Pointer to the buffer area to store the transfer data. |
[in] | sector_number | The sector number to start with. |
[in] | sector_count | Transmit with the sector size of the number of times. |
fsp_err_t(* usb_hmsc_api_t::storageWriteSector) (uint16_t drive_number, uint8_t const *const buff, uint32_t sector_number, uint16_t sector_count) |
Write sector information.
[in] | drive_number | Drive number. |
[in] | *buff | Pointer to the buffer area to store the transfer data. |
[in] | sector_number | The sector number to start with. |
[in] | sector_count | Transmit with the sector size of the number of times. |
fsp_err_t(* usb_hmsc_api_t::semaphoreGet) (void) |
Get Semaphore.
fsp_err_t(* usb_hmsc_api_t::semaphoreRelease) (void) |
Release Semaphore.
enum usb_atapi_t |
ATAPI commands
enum usb_csw_result_t |