libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
_usbd_mass_storage Struct Reference
Collaboration diagram for _usbd_mass_storage:

Data Fields

usbd_deviceusbd_dev
 
uint8_t ep_in
 
uint8_t ep_in_size
 
uint8_t ep_out
 
uint8_t ep_out_size
 
const char * vendor_id
 
const char * product_id
 
const char * product_revision_level
 
uint32_t block_count
 
int(* read_block )(uint32_t lba, uint8_t *copy_to)
 
int(* write_block )(uint32_t lba, const uint8_t *copy_from)
 
void(* lock )(void)
 
void(* unlock )(void)
 
struct usb_msc_trans trans
 
struct sbc_sense_info sense
 

Detailed Description

Definition at line 173 of file usb_msc.c.

Field Documentation

◆ block_count

uint32_t _usbd_mass_storage::block_count

Definition at line 183 of file usb_msc.c.

Referenced by scsi_format_unit(), scsi_read_capacity(), and usb_msc_init().

◆ ep_in

uint8_t _usbd_mass_storage::ep_in

Definition at line 175 of file usb_msc.c.

Referenced by msc_data_rx_cb(), msc_set_config(), and usb_msc_init().

◆ ep_in_size

uint8_t _usbd_mass_storage::ep_in_size

Definition at line 176 of file usb_msc.c.

Referenced by msc_set_config(), and usb_msc_init().

◆ ep_out

uint8_t _usbd_mass_storage::ep_out

Definition at line 177 of file usb_msc.c.

Referenced by msc_set_config(), and usb_msc_init().

◆ ep_out_size

uint8_t _usbd_mass_storage::ep_out_size

Definition at line 178 of file usb_msc.c.

Referenced by msc_data_rx_cb(), msc_data_tx_cb(), msc_set_config(), and usb_msc_init().

◆ lock

void(* _usbd_mass_storage::lock) (void)

Definition at line 188 of file usb_msc.c.

Referenced by msc_data_rx_cb(), and usb_msc_init().

◆ product_id

const char* _usbd_mass_storage::product_id

Definition at line 181 of file usb_msc.c.

Referenced by scsi_inquiry(), and usb_msc_init().

◆ product_revision_level

const char* _usbd_mass_storage::product_revision_level

Definition at line 182 of file usb_msc.c.

Referenced by scsi_inquiry(), and usb_msc_init().

◆ read_block

int(* _usbd_mass_storage::read_block) (uint32_t lba, uint8_t *copy_to)

Definition at line 185 of file usb_msc.c.

Referenced by msc_data_rx_cb(), msc_data_tx_cb(), and usb_msc_init().

◆ sense

struct sbc_sense_info _usbd_mass_storage::sense

Definition at line 192 of file usb_msc.c.

Referenced by scsi_request_sense(), and set_sbc_status().

◆ trans

struct usb_msc_trans _usbd_mass_storage::trans

Definition at line 191 of file usb_msc.c.

Referenced by msc_data_rx_cb(), msc_data_tx_cb(), and usb_msc_init().

◆ unlock

void(* _usbd_mass_storage::unlock) (void)

Definition at line 189 of file usb_msc.c.

Referenced by msc_data_rx_cb(), msc_data_tx_cb(), and usb_msc_init().

◆ usbd_dev

usbd_device* _usbd_mass_storage::usbd_dev

Definition at line 174 of file usb_msc.c.

Referenced by usb_msc_init().

◆ vendor_id

const char* _usbd_mass_storage::vendor_id

Definition at line 180 of file usb_msc.c.

Referenced by scsi_inquiry(), and usb_msc_init().

◆ write_block

int(* _usbd_mass_storage::write_block) (uint32_t lba, const uint8_t *copy_from)

Definition at line 186 of file usb_msc.c.

Referenced by msc_data_rx_cb(), scsi_format_unit(), and usb_msc_init().


The documentation for this struct was generated from the following file: