LUFA Library  120219
USB_ClassInfo_MS_Device_t Struct Reference

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

Detailed Description

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.


Field Documentation

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.

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.

Flag indicating that the host has requested that the Mass Storage interface be reset and that all current Mass Storage operations should immediately abort.

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.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines