|
solenoiddriver 2.2.0
|
Solenoid Driver Click example. More...
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
Solenoid Driver Click example.
This example demonstrates the use of the Solenoid Driver Click board by enabling output channels one by one in a round-robin fashion and parsing the diagnostic status after each update. The diagnosis includes undervoltage detection, output fault status, and operation mode.
The demo application is composed of two sections:
Initializes the logger and the Click board driver, and applies the default configuration.
Sequentially enables each output channel with a 1-second delay, checks the diagnostic register, logs operation status, and clears the latch register.
| 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 | ) |