DM240415 Microchip Technology, DM240415 Datasheet - Page 21

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)
4.2.2
// Client Driver Function Pointer Table for the USB Embedded Host foundation
// *****************************************************************************
CLIENT_DRIVER_TABLE usbClientDrvTable[] =
{
};
For more information about the usb_config.c file, please refer to the MCHPFSUSB documentation available in the installation
found at www.microchip.com/mal.
There are two main steps to initializing the firmware. The first is to initialize the USB host stack. This is done via the
USBInitialize() function as seen below:
USBInitialize(0);
The second step that is required for the initialization is for the application to describe the accessory to the Android client
driver so that it can pass this information to the Android device when attached. This is done through the
AndroidAppStart
ANDROID_ACCESSORY_INFORMATION (
accessory. An example is seen below:
//Define all of my string information here
char
char
char
char
char
char
//Pack all of the strings and their lengths into an
//
ANDROID_ACCESSORY_INFORMATION myDeviceInfo =
{
};
int
{
Note that the AndroidAppStarter() function should be called before the Android device is attached. It is recommended
to call this function after initializing the USB Android client driver but before calling the USBTasks() function.
{
}
ANDROID_ACCESSORY_INFORMATION structure
manufacturer,
sizeof(manufacturer),
model,
sizeof(model),
description,
sizeof(description),
version,
sizeof(version),
uri,
sizeof(uri),
serial,
sizeof(serial)
main(void)
//Initialize the USB host stack
USBInitialize(0);
//Send my accessory information to the Android client driver.
AndroidAppStart(&myDeviceInfo);
//Go on with my application here...
manufacturer[] = "Microchip Technology Inc.";
model[] = "Basic Accessory Demo";
description[] = "ADK - Accessory Development Starter Kit for Android (PIC24F)";
version[] = "1.0";
uri[] = "http://www.microchip.com/android";
serial[] = "N/A";
Initialization
AndroidAppInitialize,
AndroidAppEventHandler,
AndroidAppDataEventHandler,
0
(
see
page
see page 31) structure which contains all of the information about the
24)()
function.
This
function
takes
in
a
pointer
16
an
16
4

Related parts for DM240415