SCSI Logical Unit Driver API.

Public Attributes#

sl_status_t(*

Initialize storage driver.

sl_status_t(*

Request exclusive access to media.

sl_status_t(*

Release exclusive access to media.

sl_status_t(*

Retrieve storage media capacity.

sl_status_t(*

Read data from storage media.

sl_status_t(*

Write data to storage media.

Public Attribute Documentation#

init#

sl_status_t(* sl_usbd_msc_scsi_lun_api_t::init) (sl_usbd_msc_scsi_lun_t *p_scsi_lun)

Initialize storage driver.


Definition at line 88 of file protocol/usb/inc/sl_usbd_class_msc_scsi.h

open#

sl_status_t(* sl_usbd_msc_scsi_lun_api_t::open) (sl_usbd_msc_scsi_lun_t *p_scsi_lun)

Request exclusive access to media.


Definition at line 90 of file protocol/usb/inc/sl_usbd_class_msc_scsi.h

close#

sl_status_t(* sl_usbd_msc_scsi_lun_api_t::close) (sl_usbd_msc_scsi_lun_t *p_scsi_lun)

Release exclusive access to media.


Definition at line 92 of file protocol/usb/inc/sl_usbd_class_msc_scsi.h

get_capacity#

sl_status_t(* sl_usbd_msc_scsi_lun_api_t::get_capacity) (sl_usbd_msc_scsi_lun_t *p_scsi_lun, sl_usbd_msc_scsi_lb_qty_t *p_nbr_blks, uint32_t *p_blk_size)

Retrieve storage media capacity.


Definition at line 94 of file protocol/usb/inc/sl_usbd_class_msc_scsi.h

read#

sl_status_t(* sl_usbd_msc_scsi_lun_api_t::read) (sl_usbd_msc_scsi_lun_t *p_scsi_lun, sl_usbd_msc_scsi_lba_t blk_addr, uint32_t nbr_blks, uint8_t *p_data_buf)

Read data from storage media.


Definition at line 98 of file protocol/usb/inc/sl_usbd_class_msc_scsi.h

write#

sl_status_t(* sl_usbd_msc_scsi_lun_api_t::write) (sl_usbd_msc_scsi_lun_t *p_scsi_lun, sl_usbd_msc_scsi_lba_t blk_addr, uint32_t nbr_blks, uint8_t *p_data_buf)

Write data to storage media.


Definition at line 103 of file protocol/usb/inc/sl_usbd_class_msc_scsi.h