usbcsource
2.0.0.0
|
USB-C Source Click is a compact add-on board that contains a standalone autonomous USB power delivery controller. This board features the STUSB4700, an independent USB power delivery controller optimized as a provider to negotiate a given amount of power to be sourced to an inquiring consumer device from STMicroelectronics.
We provide a library for the USBCSource Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for USBCSource Click driver.
usbcsource_cfg_setup
Config Object Initialization function. usbcsource_init
Initialization function. usbcsource_hw_reset
HW reset function. usbcsource_get_alert_status
Get alert status function. usbcsource_set_pdo_config
Set PDO configuration function. 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.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART Click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.