usbcsink2 2.1.0.0
|
USB-C Sink 2 Click Example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
USB-C Sink 2 Click Example.
This example demonstrates the use of the USB-C Sink 2 Click boardâ„¢ by setting DC power requests and control for Type-C connector-equipped devices (TCD).
The demo application is composed of two sections :
Initializes I2C and ADC modules and log UART. After driver initialization the app set default settings.
In this example, the app configures Power Data Objects (PDO) highest priority profile and requests power from a standard USB PD source adapter. After connecting the PD source and USB-C Sink 2 Click with the Type-C cable, the app gets the total number of valid PDO's and switches all PDO configurations every 10 seconds. When the PD source accepts the request, the app displays information about VOUT Voltage [mV] and Current [mA] and the temperature [degree Celsius] of the USB-C connector.
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |