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

Data Fields

uint8_t cbw_cnt
 
union {
   struct usb_msc_cbw   cbw
 
   uint8_t   buf [1]
 
cbw
 
uint32_t bytes_to_read
 
uint32_t bytes_to_write
 
uint32_t byte_count
 
uint32_t lba_start
 
uint32_t block_count
 
uint32_t current_block
 
uint8_t msd_buf [512]
 
bool csw_valid
 
uint8_t csw_sent
 
union {
   struct usb_msc_csw   csw
 
   uint8_t   buf [1]
 
csw
 

Detailed Description

Definition at line 147 of file usb_msc.c.

Field Documentation

◆ block_count

uint32_t usb_msc_trans::block_count

◆ buf

uint8_t usb_msc_trans::buf[1]

Definition at line 151 of file usb_msc.c.

◆ byte_count

uint32_t usb_msc_trans::byte_count

Definition at line 156 of file usb_msc.c.

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

◆ bytes_to_read

uint32_t usb_msc_trans::bytes_to_read

Definition at line 154 of file usb_msc.c.

Referenced by msc_data_rx_cb(), scsi_command(), scsi_write_10(), scsi_write_6(), and usb_msc_init().

◆ bytes_to_write

◆ cbw [1/2]

struct usb_msc_cbw usb_msc_trans::cbw

◆  [2/2]

union { ... } usb_msc_trans::cbw

◆ cbw_cnt

uint8_t usb_msc_trans::cbw_cnt

Definition at line 148 of file usb_msc.c.

Referenced by msc_data_rx_cb(), and usb_msc_init().

◆ csw [1/2]

struct usb_msc_csw usb_msc_trans::csw

Definition at line 168 of file usb_msc.c.

Referenced by scsi_command(), scsi_inquiry(), and scsi_mode_sense_6().

◆  [2/2]

union { ... } usb_msc_trans::csw

◆ csw_sent

uint8_t usb_msc_trans::csw_sent

Definition at line 166 of file usb_msc.c.

Referenced by scsi_command(), and usb_msc_init().

◆ csw_valid

bool usb_msc_trans::csw_valid

Definition at line 165 of file usb_msc.c.

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

◆ current_block

uint32_t usb_msc_trans::current_block

◆ lba_start

uint32_t usb_msc_trans::lba_start

◆ msd_buf

uint8_t usb_msc_trans::msd_buf[512]

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