Skip to content

steffen-p/libcyusbserial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Cypress USB Serial Library for Android

This library is meant to be built within Android AOSP. Applications can reference this as shared lib in their blueprint files. Please see example application for reference.

For native build on various platforms with cmake, please see this project 1.

LGPLv2.1+ License

Target Hardware

Cypress has a range of USB-Serial Bridge Controller devices to assist embedded applications. These devices can work in two modes.

Quote from vendor's homepage 4:

In CDC mode (CDC device class) the device will come up as Virtual COM Port (VCP) device.
Native APIs can be used to access the device in CDC mode for all the OS.
In Vendor mode, the device enumerates as a USB device and is accessed using
the Cypress provided library (for all OS).

This library enables usage of the later mode.

Dependencies

  1. libusb 1.0.9 (or higher) is required for compilation and functioning of the APIs in the library. libusb should be present in your AOSP environment.

Integration and Build

  1. Clone into android project (e.g. /<android>/external)

  2. source and lunch for your device

  3. make libcyusbserial

Note

Refer to the CyUSBSerial API documentation for descriptions of all the vendor mode APIs. The header file of the library is in ./include/CyUSBSerial.h.