LUFA Library  140302
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Common Class Definitions

Macros

#define ANDROID_ACCESSORY_ADB_PRODUCT_ID   0x2D01
 
#define ANDROID_ACCESSORY_PRODUCT_ID   0x2D00
 

Enumerations

enum  AOA_ClassRequests_t {
  AOA_REQ_GetAccessoryProtocol = 0x33,
  AOA_REQ_SendString = 0x34,
  AOA_REQ_StartAccessoryMode = 0x35
}
 
enum  AOA_Descriptor_ClassSubclassProtocol_t {
  AOA_CSCP_AOADataClass = 0xFF,
  AOA_CSCP_AOADataSubclass = 0xFF,
  AOA_CSCP_AOADataProtocol = 0x00
}
 
enum  AOA_Protocols_t {
  AOA_PROTOCOL_AccessoryV1 = 0x0001,
  AOA_PROTOCOL_AccessoryV2 = 0x0002
}
 
enum  AOA_Strings_t {
  AOA_STRING_Manufacturer = 0,
  AOA_STRING_Model = 1,
  AOA_STRING_Description = 2,
  AOA_STRING_Version = 3,
  AOA_STRING_URI = 4,
  AOA_STRING_Serial = 5
}
 

Detailed Description

Module Description

Constants, Types and Enum definitions that are common to both Device and Host modes for the USB Android Open Accessory Class.

Macro Definition Documentation

#define ANDROID_ACCESSORY_ADB_PRODUCT_ID   0x2D01

Product ID value in a Device Descriptor to indicate an Android device in Open Accessory and Android Debug mode.

#define ANDROID_ACCESSORY_PRODUCT_ID   0x2D00

Product ID value in a Device Descriptor to indicate an Android device in Open Accessory mode.

Enumeration Type Documentation

Enum for the Android Open Accessory class specific control requests that can be issued by the USB bus host.

Enumerator
AOA_REQ_GetAccessoryProtocol 

Android Open Accessory control request to retrieve the device's supported Accessory Protocol version.

AOA_REQ_SendString 

Android Open Accessory control request to set an accessory property string in the device.

AOA_REQ_StartAccessoryMode 

Android Open Accessory control request to switch the device into Accessory mode.

Enum for possible Class, Subclass and Protocol values of device and interface descriptors relating to the Android Open Accessory class.

Enumerator
AOA_CSCP_AOADataClass 

Descriptor Class value indicating that the device or interface belongs to the AOA data class.

AOA_CSCP_AOADataSubclass 

Descriptor Subclass value indicating that the device or interface belongs to AOA data subclass.

AOA_CSCP_AOADataProtocol 

Descriptor Protocol value indicating that the device or interface belongs to the AOA data class protocol.

Enum for the possible Android Open Accessory protocol versions.

Enumerator
AOA_PROTOCOL_AccessoryV1 

Android Open Accessory version 1.

AOA_PROTOCOL_AccessoryV2 

Android Open Accessory version 2.

Enum for the possible Android Open Accessory property string indexes.

Enumerator
AOA_STRING_Manufacturer 

Index of the Manufacturer property string.

AOA_STRING_Model 

Index of the Model Name property string.

AOA_STRING_Description 

Index of the Description property string.

AOA_STRING_Version 

Index of the Version Number property string.

AOA_STRING_URI 

Index of the URI Information property string.

AOA_STRING_Serial 

Index of the Serial Number property string.