Android Open Accessory Header File.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include <string.h>
#include "conf_usb_host.h"
#include "conf_aoa.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... | |
bool | uhi_aoa_register_hid (uint16_t id, uint8_t *hid_rpt_desc, uint16_t hid_rpt_desc_len) |
Register a HID device. More... | |
bool | uhi_aoa_unregister_hid (uint16_t id) |
Unregister a HID device. More... | |
bool | uhi_aoa_send_hid_event (uint16_t id, void *hid_rpt, uint16_t rpt_size) |
Send HID events. More... | |