Datasheet

5.2.1 USB_ERROR_BUFFER_TOO_SMALL Macro
File
usb_host_android.h
C
#define USB_ERROR_BUFFER_TOO_SMALL USB_ERROR_CLASS_DEFINED + 0
Description
Error code indicating that the buffer passed to the read function was too small. Since the USB host can't control how much
data it will receive in a single packet, the user must provide a buffer that is at least the size of the endpoint of the attached
device. If a buffer is passed in that is too small, the read will not start and this error is returned to the user.
5.3 Configuration Definitions
Macros
Name Description
NUM_ANDROID_DEVICES_SUPPORTED
( see page 29)
Defines the number of concurrent Android devices this
implementation is allowed to talk to. This definition is only used for
implementations where the accessory is the host and the Android
device is the slave. This is also most often defined to be 1. If this
is not defined by the user, a default of 1 is used.
This option is only used when compiling the source version of the
library. This value is set to 1 for pre-compiled versions of the
library.
5.3.1 NUM_ANDROID_DEVICES_SUPPORTED Macro
File
usb_host_android.h
C
#define NUM_ANDROID_DEVICES_SUPPORTED 1
Description
Defines the number of concurrent Android devices this implementation is allowed to talk to. This definition is only used for
implementations where the accessory is the host and the Android device is the slave. This is also most often defined to be 1.
If this is not defined by the user, a default of 1 is used.
This option is only used when compiling the source version of the library. This value is set to 1 for pre-compiled versions of
the library.
Microchip's Accessory Framework for Android(tm) 29
29
5