DM240415 Microchip Technology, DM240415 Datasheet - Page 30

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)
Function
5.1.5
File
C
Description
Remarks
Preconditions
Parameters
Return Values
Function
5.1.6
void AndroidAppStart( ANDROID_ACCESSORY_INFORMATION ( see page 31) *info)
Sends data to the Android device specified by the passed in handle.
usb_host_android.h
BYTE AndroidAppWrite(
);
Sends data to the Android device specified by the passed in handle.
None
Transfer is not already in progress. USB module is initialized and Android device has attached.
BYTE AndroidAppWrite(void* handle, BYTE* data, DWORD size)
Tasks function that keeps the Android client driver moving
Parameters
void* handle
BYTE* data
DWORD size
Return Values
USB_SUCCESS
USB_UNKNOWN_DEVICE
USB_INVALID_STATE
USB_ENDPOINT_ILLEGAL_TYPE
USB_ENDPOINT_ILLEGAL_DIRECTION Must write to an OUT endpoint.
USB_ENDPOINT_STALLED
USB_ENDPOINT_ERROR
USB_ENDPOINT_BUSY
USB_ENDPOINT_NOT_FOUND
void* handle,
BYTE* data,
DWORD size
AndroidAppWrite Function
AndroidTasks Function
Description
the handle passed to the device in the EVENT_ANDROID_ATTACH ( see
page 30) event
the data to send to the Android device
the size of the data that needs to be sent
Description
Write started successfully.
Device with the specified address not found.
We are not in a normal running state.
Must use USBHostControlWrite to write to a control endpoint.
Endpoint is stalled. Must be cleared by the application.
Endpoint has too many errors. Must be cleared by the application.
A Write is already in progress.
Invalid endpoint.
25
25
5

Related parts for DM240415