SCSI Logical Unit.

Public Attributes#

uint8_t

Index of this logical unit in the global SCSI lun table.

const char *

Dev vendor info.

const char *

Dev prod ID.

uint32_t

Revision level of product.

bool

write protected or not.

bool

Flag that indicates if logical unit is removeable.

uint8_t

The class number of the MSC instance.

uint8_t

Logical unit nbr inside the class instance.

sl_usbd_msc_scsi_lun_api_t *

Pointer to logical unit's driver API.

void *

Pointer to storage driver's data.

uint32_t

Size of blocks.

sl_usbd_msc_scsi_lba_t

Logical Blk Addr.

uint32_t

Nbr of mem blks.

uint8_t

Sense key describing an err or exception cond.

uint8_t

Additional Sense Code describing sense key in detail.

bool

Flag indicating logical unit locked or not.

bool

Flag indicating logical unit is present or not.

Public Attribute Documentation#

lun_index#

uint8_t sl_usbd_msc_scsi_lun_t::lun_index

Index of this logical unit in the global SCSI lun table.


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

vendor_id_str#

const char* sl_usbd_msc_scsi_lun_t::vendor_id_str

Dev vendor info.


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

product_id_str#

const char* sl_usbd_msc_scsi_lun_t::product_id_str

Dev prod ID.


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

product_revision_level#

uint32_t sl_usbd_msc_scsi_lun_t::product_revision_level

Revision level of product.


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

is_read_only#

bool sl_usbd_msc_scsi_lun_t::is_read_only

write protected or not.


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

is_removable#

bool sl_usbd_msc_scsi_lun_t::is_removable

Flag that indicates if logical unit is removeable.


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

class_nbr#

uint8_t sl_usbd_msc_scsi_lun_t::class_nbr

The class number of the MSC instance.


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

lu_nbr#

uint8_t sl_usbd_msc_scsi_lun_t::lu_nbr

Logical unit nbr inside the class instance.


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

scsi_lun_api_ptr#

sl_usbd_msc_scsi_lun_api_t* sl_usbd_msc_scsi_lun_t::scsi_lun_api_ptr

Pointer to logical unit's driver API.


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

data_ptr#

void* sl_usbd_msc_scsi_lun_t::data_ptr

Pointer to storage driver's data.


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

blocks_nbr#

sl_usbd_msc_scsi_lb_qty_t sl_usbd_msc_scsi_lun_t::blocks_nbr

Quantity of blocks.


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

block_size#

uint32_t sl_usbd_msc_scsi_lun_t::block_size

Size of blocks.


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

lb_addr#

sl_usbd_msc_scsi_lba_t sl_usbd_msc_scsi_lun_t::lb_addr

Logical Blk Addr.


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

lb_count#

uint32_t sl_usbd_msc_scsi_lun_t::lb_count

Nbr of mem blks.


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

sense_key#

uint8_t sl_usbd_msc_scsi_lun_t::sense_key

Sense key describing an err or exception cond.


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

asc#

uint8_t sl_usbd_msc_scsi_lun_t::asc

Additional Sense Code describing sense key in detail.


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

opened_flag#

bool sl_usbd_msc_scsi_lun_t::opened_flag

Flag indicating logical unit locked or not.


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

present_flag#

bool sl_usbd_msc_scsi_lun_t::present_flag

Flag indicating logical unit is present or not.


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