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.
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.
- 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.
-
Clone into android project (e.g. /<android>/external)
-
source and lunch for your device
-
make libcyusbserial
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
.