LUFA Library
120219
|
Mass Storage Class Device Mode Configuration and State Structure. More...
#include <MassStorageClassDevice.h>
Data Fields | |
struct { | |
uint8_t InterfaceNumber | |
uint8_t DataINEndpointNumber | |
uint16_t DataINEndpointSize | |
bool DataINEndpointDoubleBank | |
uint8_t DataOUTEndpointNumber | |
uint16_t DataOUTEndpointSize | |
bool DataOUTEndpointDoubleBank | |
uint8_t TotalLUNs | |
} | Config |
struct { | |
MS_CommandBlockWrapper_t CommandBlock | |
MS_CommandStatusWrapper_t CommandStatus | |
volatile bool IsMassStoreReset | |
} | State |
Class state structure. An instance of this structure should be made for each Mass Storage interface within the user application, and passed to each of the Mass Storage class driver functions as the MSInterfaceInfo
parameter. This stores each Mass Storage interface's configuration and state information.
Mass Storage class command block structure, stores the received SCSI command from the host which is to be processed.
Mass Storage class command status structure, set elements to indicate the issued command's success or failure to the host.
struct { ... } USB_ClassInfo_MS_Device_t::Config |
Config data for the USB class interface within the device. All elements in this section must be set or the interface will fail to enumerate and operate correctly.
Indicates if the Mass Storage interface's IN data endpoint should use double banking.
Endpoint number of the Mass Storage interface's IN data endpoint.
Size in bytes of the Mass Storage interface's IN data endpoint.
Indicates if the Mass Storage interface's OUT data endpoint should use double banking.
Endpoint number of the Mass Storage interface's OUT data endpoint.
Size in bytes of the Mass Storage interface's OUT data endpoint.
Interface number of the Mass Storage interface within the device.
volatile bool USB_ClassInfo_MS_Device_t::IsMassStoreReset |
Flag indicating that the host has requested that the Mass Storage interface be reset and that all current Mass Storage operations should immediately abort.
struct { ... } USB_ClassInfo_MS_Device_t::State |
State data for the USB class interface within the device. All elements in this section are reset to their defaults when the interface is enumerated.
Total number of logical drives in the Mass Storage interface.