usbcsource 2.0.0.0
|
USBCSource Click example. More...
Functions | |
void | display_port_status (void) |
USB-C Source display port status. | |
void | display_monitoring_status (void) |
USB-C Source display monitoring status. | |
void | display_connection_status (void) |
USB-C Source display connection status. | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
port_status_t | port_status |
monitor_status_t | monitor_status |
connection_status_t | conn_status |
pdo_config_t | pdo_data |
USBCSource Click example.
This is an example that demonstrates the use of the USB-C Source Click board.
The demo application is composed of two sections :
Initialization driver enables - I2C, set hardware reset and default configuration and display configuration of the five PDOs, also write log.
In this example, we show port status, monitoring, and connections. All data logs write on USB uart changes every 5 sec.
Additional Functions :
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 | ) |
void display_connection_status | ( | void | ) |
USB-C Source display connection status.
This function is used for displaying connection status.
void display_monitoring_status | ( | void | ) |
USB-C Source display monitoring status.
This function is used for displaying monitoring status.
void display_port_status | ( | void | ) |
USB-C Source display port status.
This function is used for displaying port status.
int main | ( | void | ) |
connection_status_t conn_status |
monitor_status_t monitor_status |
pdo_config_t pdo_data |
port_status_t port_status |