usbcpower 2.1.0.0
|
USB-C Power Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
USB-C Power Click example.
This example demonstrates the use of the USB-C Power Click boardâ„¢ by configuring the PD controller to attempt to become a Power Source.
The demo application is composed of two sections :
The initialization of I2C module, log UART, and additional pins. After the driver init, the app executes a default configuration, depending on PD Device Mode, the app performs the patch bundle update tasks for loading a patch bundle in burst mode to the PD controller.
The application display status information about the PD controller data role and power of the connection. Results are being sent to the UART Terminal, where you can track their changes.
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 | ) |