solidswitch
2.0.0.0
|
SolidSwitch Click is a compact add-on board that contains load switch devices. This board features the TPS22918, four single-channel load switches from Texas Instruments.
We provide a library for the SolidSwitch 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 SolidSwitch Click driver.
solidswitch_cfg_setup
Config Object Initialization function. solidswitch_init
Initialization function. solidswitch_default_cfg
Click Default Configuration function. solidswitch_write_single
SolidSwitch I2C writing logic state function. solidswitch_read_single
SolidSwitch I2C reading logic state function. solidswitch_reset
SolidSwitch reset function. This example demonstrates the use of SolidSwitch Click board.
The demo application is composed of two sections :
Initializes the driver and logger and enables the Click board.
Enables different outputs every 3 seconds and displays all enabled outputs on USB UART.
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.