Atmel Software Framework

uhi_aoa.h File Reference

Android Open Accessory Header File.

Copyright (C) 2012 Atmel Corporation. All rights reserved.

#include <string.h>
#include "conf_usb_host.h"
#include "usb_protocol_aoa.h"
#include "uhc.h"
#include "uhi.h"

Macros

#define UHI_AOA
 Global structure which contains standard UHI API for UHC. More...
 

Functions

Functions required by UHC
uhc_enum_status_t uhi_aoa_install (uhc_device_t *dev)
 Functions required by UHC. More...
 
void uhi_aoa_enable (uhc_device_t *dev)
 
void uhi_aoa_uninstall (uhc_device_t *dev)
 
Routines to initialize the Android device
void uhi_aoa_send_info_string (uint8_t, char *, uhd_callback_setup_end_t)
 Function to send Identifying Information to the Android Device. More...
 
bool uhi_aoa_configure (uhc_device_t *)
 Tries to configure bulk Endpoints for the Android Accessory. More...
 
void main_event_aoa (uhc_device_t *, bool)
 Takes care of Devices being attached/detached. More...
 
Routines to communicate with the Android device
bool uhi_aoa_read (uint8_t *payload, uint16_t payload_size, uhd_callback_trans_t callback_end)
 Main Function to receive a message from an Android device. More...
 
bool uhi_aoa_write (uint8_t *payload, uint16_t payload_size, uhd_callback_trans_t callback_end)
 Main Function to send a message to an Android device. More...