usbcsink3 2.1.0.0
|
USB-C Sink 3 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
USB-C Sink 3 Click example.
This example demonstrates the use of USB-C Sink 3 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 SPI, I2C and ADC modules and log UART. After driver initialization the app set default settings: Voltage Selection: 5 [V] and Power: 15.0 [W].
In this example, the app configures Power Data Objects (PDO) highest priority profile and requests power from a standard USB PD source adapter. It interprets power input requirements (voltage/current and maximum power) from the TCD. The example uses two configurations:
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 | ) |