sl_usbd_msc_scsi_lun_t Struct Reference

SCSI Logical Unit.

#include <sl_usbd_class_msc_scsi.h>

Data Fields

uint8_t lun_index
Index of this logical unit in the global SCSI lun table.
const char * vendor_id_str
Dev vendor info.
const char * product_id_str
Dev prod ID.
uint32_t product_revision_level
Revision level of product.
bool is_read_only
write protected or not.
bool is_removable
Flag that indicates if logical unit is removeable.
uint8_t class_nbr
The class number of the MSC instance.
uint8_t lu_nbr
Logical unit nbr inside the class instance.
sl_usbd_msc_scsi_lun_api_t * scsi_lun_api_ptr
Pointer to logical unit's driver API.
void * data_ptr
Pointer to storage driver's data.
sl_usbd_msc_scsi_lb_qty_t blocks_nbr
Quantity of blocks.
uint32_t block_size
Size of blocks.
sl_usbd_msc_scsi_lba_t lb_addr
Logical Blk Addr.
uint32_t lb_count
Nbr of mem blks.
uint8_t sense_key
Sense key describing an err or exception cond.
uint8_t asc
Additional Sense Code describing sense key in detail.
bool opened_flag
Flag indicating logical unit locked or not.
bool present_flag
Flag indicating logical unit is present or not.

SCSI Logical Unit.

Field Documentation

lun_index

uint8_t sl_usbd_msc_scsi_lun_t::lun_index

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

vendor_id_str

const char* sl_usbd_msc_scsi_lun_t::vendor_id_str

Dev vendor info.

product_id_str

const char* sl_usbd_msc_scsi_lun_t::product_id_str

Dev prod ID.

product_revision_level

uint32_t sl_usbd_msc_scsi_lun_t::product_revision_level

Revision level of product.

is_read_only

bool sl_usbd_msc_scsi_lun_t::is_read_only

write protected or not.

is_removable

bool sl_usbd_msc_scsi_lun_t::is_removable

Flag that indicates if logical unit is removeable.

class_nbr

uint8_t sl_usbd_msc_scsi_lun_t::class_nbr

The class number of the MSC instance.

lu_nbr

uint8_t sl_usbd_msc_scsi_lun_t::lu_nbr

Logical unit nbr inside the class instance.

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.

data_ptr

void* sl_usbd_msc_scsi_lun_t::data_ptr

Pointer to storage driver's data.

blocks_nbr

sl_usbd_msc_scsi_lb_qty_t sl_usbd_msc_scsi_lun_t::blocks_nbr

Quantity of blocks.

block_size

uint32_t sl_usbd_msc_scsi_lun_t::block_size

Size of blocks.

lb_addr

sl_usbd_msc_scsi_lba_t sl_usbd_msc_scsi_lun_t::lb_addr

Logical Blk Addr.

lb_count

uint32_t sl_usbd_msc_scsi_lun_t::lb_count

Nbr of mem blks.

sense_key

uint8_t sl_usbd_msc_scsi_lun_t::sense_key

Sense key describing an err or exception cond.

asc

uint8_t sl_usbd_msc_scsi_lun_t::asc

Additional Sense Code describing sense key in detail.

opened_flag

bool sl_usbd_msc_scsi_lun_t::opened_flag

Flag indicating logical unit locked or not.

present_flag

bool sl_usbd_msc_scsi_lun_t::present_flag

Flag indicating logical unit is present or not.