![]() |
LUFA Library
120219
|
Android Open Accessory Class Host Mode Configuration and State Structure. More...
#include <AndroidAccessoryClassHost.h>
Data Fields | |
struct { | |
uint8_t DataINPipeNumber | |
bool DataINPipeDoubleBank | |
uint8_t DataOUTPipeNumber | |
bool DataOUTPipeDoubleBank | |
struct { | |
char * Manufacturer | |
char * Model | |
char * Description | |
char * Version | |
char * URI | |
char * Serial | |
} PropertyStrings | |
} | Config |
struct { | |
bool IsActive | |
uint8_t InterfaceNumber | |
uint16_t DataINPipeSize | |
uint16_t DataOUTPipeSize | |
} | State |
Class state structure. An instance of this structure should be made within the user application, and passed to each of the Android Open Accessory class driver functions as the AOAInterfaceInfo
parameter. This stores each Android Open Accessory interface's configuration and state information.
struct { ... } USB_ClassInfo_AOA_Host_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 AOA interface's IN data pipe should use double banking.
Pipe number of the AOA interface's IN data pipe.
Size in bytes of the AOA interface's IN data pipe.
Indicates if the AOA interface's OUT data pipe should use double banking.
Pipe number of the AOA interface's OUT data pipe.
Size in bytes of the AOA interface's OUT data pipe.
Device description string.
Interface index of the AOA interface within the attached device.
Indicates if the current interface instance is connected to an attached device, valid after AOA_Host_ConfigurePipes() is called and the Host state machine is in the Configured state.
Device manufacturer string.
Device model name string.
struct { ... } USB_ClassInfo_AOA_Host_t::PropertyStrings |
Android Accessory property strings, sent to identify the accessory when the Android device is switched into Open Accessory mode.
Device serial number string.
struct { ... } USB_ClassInfo_AOA_Host_t::State |
State data for the USB class interface within the device. All elements in this section may be set to initial values, but may also be ignored to default to sane values when the interface is enumerated.
Device URI information string.
Device version string.