| LUFA Library 140302 |

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
AndroidAccessoryClassHost.h File Reference

Host mode driver for the library USB Android Open Accessory Class driver. More...

`#include "../../USB.h"`
`#include "../Common/AndroidAccessoryClassCommon.h"`
`#include <stdio.h>`

## Data Structures
struct | USB_ClassInfo_AOA_Host_t
| Android Open Accessory Class Host Mode Configuration and State Structure. More...

## Macros
#define | AOA_ERROR_LOGICAL_CMD_FAILED 0x80

## Enumerations
enum | AOA_Host_EnumerationFailure_ErrorCodes_t { AOA_ENUMERROR_NoError = 0, AOA_ENUMERROR_InvalidConfigDescriptor = 1, AOA_ENUMERROR_NoCompatibleInterfaceFound = 2, AOA_ENUMERROR_PipeConfigurationFailed = 3 }

## Functions
uint16_t | AOA_Host_BytesReceived (USB_ClassInfo_AOA_Host_t *const AOAInterfaceInfo) ATTR_NON_NULL_PTR_ARG(1)
uint8_t | AOA_Host_ConfigurePipes (USB_ClassInfo_AOA_Host_t *const AOAInterfaceInfo, uint16_t ConfigDescriptorSize, void *ConfigDescriptorData) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(3)
void | AOA_Host_CreateBlockingStream (USB_ClassInfo_AOA_Host_t *const AOAInterfaceInfo, FILE *const Stream) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2)
void | AOA_Host_CreateStream (USB_ClassInfo_AOA_Host_t *const AOAInterfaceInfo, FILE *const Stream) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2)
uint8_t | AOA_Host_Flush (USB_ClassInfo_AOA_Host_t *const AOAInterfaceInfo) ATTR_NON_NULL_PTR_ARG(1)
int16_t | AOA_Host_ReceiveByte (USB_ClassInfo_AOA_Host_t *const AOAInterfaceInfo) ATTR_NON_NULL_PTR_ARG(1)
uint8_t | AOA_Host_SendByte (USB_ClassInfo_AOA_Host_t *const AOAInterfaceInfo, const uint8_t Data) ATTR_NON_NULL_PTR_ARG(1)
uint8_t | AOA_Host_SendData (USB_ClassInfo_AOA_Host_t *const AOAInterfaceInfo, const void *const Buffer, const uint16_t Length) ATTR_NON_NULL_PTR_ARG(1)
uint8_t | AOA_Host_SendString (USB_ClassInfo_AOA_Host_t *const AOAInterfaceInfo, const char *const String) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2)
uint8_t | AOA_Host_StartAccessoryMode (USB_ClassInfo_AOA_Host_t *const AOAInterfaceInfo) ATTR_NON_NULL_PTR_ARG(1)
void | AOA_Host_USBTask (USB_ClassInfo_AOA_Host_t *const AOAInterfaceInfo) ATTR_NON_NULL_PTR_ARG(1)
bool | AOA_Host_ValidateAccessoryDevice (USB_ClassInfo_AOA_Host_t *const AOAInterfaceInfo, const USB_Descriptor_Device_t *const DeviceDescriptor, bool *const NeedModeSwitch) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2) ATTR_NON_NULL_PTR_ARG(3)

## Detailed Description

Host mode driver for the library USB Android Open Accessory Class driver.

Note
  This file should not be included directly. It is automatically included as needed by the USB module driver dispatch header located in LUFA/Drivers/USB.h.