Loading...
Searching...
No Matches
usbus_msc_device Struct Reference

USBUS MSC device interface context. More...

Detailed Description

USBUS MSC device interface context.

Definition at line 76 of file msc.h.

#include <msc.h>

Data Fields

usbus_handler_t handler_ctrl
 Control interface handler.
 
usbus_interface_t iface
 MSC interface.
 
usbus_endpoint_tep_in
 Data endpoint in.
 
usbus_endpoint_tep_out
 Data endpoint out.
 
uint8_t * out_buf
 Pointer to internal out endpoint buffer.
 
uint8_t * in_buf
 Pointer to internal in endpoint buffer.
 
usbus_descr_gen_t msc_descr
 MSC descriptor generator.
 
usbus_tusbus
 Pointer to the USBUS context.
 
cbw_info_t cmd
 Command Block Wrapper information.
 
event_t rx_event
 Transmit ready event.
 
usbus_msc_state_t state
 Internal state machine for msc.
 
uint8_t * buffer
 Pointer to the current data transfer buffer.
 
uint32_t buffer_size
 Size of the internal buffer used for data transfer.
 
uint32_t block
 First block to transfer data from/to.
 
uint16_t block_nb
 Number of block to transfer for READ and WRITE operations.
 
uint16_t block_offset
 Internal offset for endpoint size chunk transfer.
 
usbus_msc_lun_tlun_dev
 Array holding exported logical unit descriptor.
 

Field Documentation

◆ block

uint32_t usbus_msc_device::block

First block to transfer data from/to.

Definition at line 90 of file msc.h.

◆ block_nb

uint16_t usbus_msc_device::block_nb

Number of block to transfer for READ and WRITE operations.

Definition at line 91 of file msc.h.

◆ block_offset

uint16_t usbus_msc_device::block_offset

Internal offset for endpoint size chunk transfer.

Definition at line 93 of file msc.h.

◆ buffer

uint8_t* usbus_msc_device::buffer

Pointer to the current data transfer buffer.

Definition at line 88 of file msc.h.

◆ buffer_size

uint32_t usbus_msc_device::buffer_size

Size of the internal buffer used for data transfer.

Definition at line 89 of file msc.h.

◆ cmd

cbw_info_t usbus_msc_device::cmd

Command Block Wrapper information.

Definition at line 85 of file msc.h.

◆ ep_in

usbus_endpoint_t* usbus_msc_device::ep_in

Data endpoint in.

Definition at line 79 of file msc.h.

◆ ep_out

usbus_endpoint_t* usbus_msc_device::ep_out

Data endpoint out.

Definition at line 80 of file msc.h.

◆ handler_ctrl

usbus_handler_t usbus_msc_device::handler_ctrl

Control interface handler.

Definition at line 77 of file msc.h.

◆ iface

usbus_interface_t usbus_msc_device::iface

MSC interface.

Definition at line 78 of file msc.h.

◆ in_buf

uint8_t* usbus_msc_device::in_buf

Pointer to internal in endpoint buffer.

Definition at line 82 of file msc.h.

◆ lun_dev

usbus_msc_lun_t* usbus_msc_device::lun_dev

Array holding exported logical unit descriptor.

Definition at line 94 of file msc.h.

◆ msc_descr

usbus_descr_gen_t usbus_msc_device::msc_descr

MSC descriptor generator.

Definition at line 83 of file msc.h.

◆ out_buf

uint8_t* usbus_msc_device::out_buf

Pointer to internal out endpoint buffer.

Definition at line 81 of file msc.h.

◆ rx_event

event_t usbus_msc_device::rx_event

Transmit ready event.

Definition at line 86 of file msc.h.

◆ state

usbus_msc_state_t usbus_msc_device::state

Internal state machine for msc.

Definition at line 87 of file msc.h.

◆ usbus

usbus_t* usbus_msc_device::usbus

Pointer to the USBUS context.

Definition at line 84 of file msc.h.


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