DM240415 Microchip Technology, DM240415 Datasheet - Page 26

Accessory Development Starter Kit For Android General Purpose

DM240415

Manufacturer Part Number
DM240415
Description
Accessory Development Starter Kit For Android General Purpose
Manufacturer
Microchip Technology
Series
-r
Datasheet

Specifications of DM240415

Processor To Be Evaluated
PIC24FJ256GB110-I/PT
Processor Series
PIC24F
Data Bus Width
16 bit
Interface Type
USB
Operating Supply Voltage
3.3 V
Design Resources
PIC24F ADK Schematic
Main Purpose
Reference Design, Tablet
Embedded
Yes, MCU, 16-Bit
Utilized Ic / Part
PIC24F
Primary Attributes
Android OS, Development Platform for Accessories, Arduino Compatible
Secondary Attributes
Royalty Free, No Fee Licensed Software Library
Lead Free Status / Rohs Status
 Details

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM240415
Manufacturer:
MICROCHIP
Quantity:
12 000
Microchip's Accessory Framework for Android(tm)
5
5.1
Functions
5.1.1
File
C
Description
Remarks
This section covers the API routines available in this distribution. These descriptions cover more of the interface of these
functions. For example usages and more details about how to use these functions in conjunction with each other and in your
system, please refer to the Using the Library ( see page 12) section of the document.
Check to see if the last read to the Android device was completed
usb_host_android.h
BOOL AndroidAppIsReadComplete(
);
Check to see if the last read to the Android device was completed. If complete, returns the amount of data that was sent and
the corresponding error code for the transmission.
Possible values for errorCode are:
• USB_SUCCESS - Transfer successful
• USB_UNKNOWN_DEVICE - Device not attached
• USB_ENDPOINT_STALLED - Endpoint STALL'd
• USB_ENDPOINT_ERROR_ILLEGAL_PID - Illegal PID returned
Firmware API
void* handle,
BYTE* errorCode,
DWORD* size
API Functions
AndroidAppIsReadComplete Function
Name
AndroidAppIsReadComplete
( see page 21)
AndroidAppIsWriteComplete
( see page 22)
AndroidAppRead ( see
page 23)
AndroidAppStart ( see page
24)
AndroidAppWrite ( see
page 25)
AndroidTasks ( see page
25)
Description
Check to see if the last read to the Android device was completed
Check to see if the last write to the Android device was completed
Attempts to read information from the specified Android device
Sets the accessory information and initializes the client driver information after
the initial power cycles.
Sends data to the Android device specified by the passed in handle.
Tasks function that keeps the Android client driver moving
21
21
5

Related parts for DM240415