USB_ClassInfo_MS_Device_t Struct Reference
[Mass Storage Class Device Mode Driver]

#include <MassStorage.h>


Data Fields

struct {
   uint8_t   InterfaceNumber
   uint8_t   DataINEndpointNumber
   uint16_t   DataINEndpointSize
   uint8_t   DataOUTEndpointNumber
   uint16_t   DataOUTEndpointSize
   uint8_t   TotalLUNs
Config
struct {
   MS_CommandBlockWrapper_t   CommandBlock
   MS_CommandStatusWrapper_t   CommandStatus
   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.

Endpoint number of the Mass Storage interface's IN data endpoint

Size in bytes of the Mass Storage interface's IN data endpoint

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:

Generated on Sun Aug 9 19:53:13 2009 for LUFA (Formerly MyUSB) Library by  doxygen 1.5.9