USBD_StorageCapacityGet
Description
Get the capacity of the storage medium.
Files
usbd_storage.h / usbd_storage.c
Prototype
void USBD_StorageCapacityGet (USBD_STORAGE_LUN *p_storage_lun), CPU_INT64U *p_nbr_blks, CPU_INT32U *p_blk_size, USBD_ERR *p_err)
Arguments
p_storage_lun
Pointer to logical unit storage structure.
p_nbr_blks
Pointer to variable that will receive the number of logical blocks.
p_blk_size
Pointer to variable that will receive the size of each block, in bytes.
p_err
Pointer to variable that will receive the return error code from this function.
USBD_ERR_NONE
USBD_ERR_SCSI_MEDIUM_NOTPRESENT
Returned Value
None.
Callers
Mass Storage Class.
Notes / Warnings
None.