currentlimit 2.0.0.0
|
CurrentLimit Click example. More...
Functions | |
void | display_settings (void) |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
const uint8_t | lim_val [8] = { 223, 241, 247, 250, 252, 253, 254, 255 } |
uint16_t | lim_data [8] = { 100, 200, 300, 400, 500, 600, 700, 867 } |
CurrentLimit Click example.
This example shows capabilities of Current Limit Click board.
The demo application is composed of two sections :
Initalizes SPI driver and enables the device.
Reading users input from USART terminal and using it as an index for an array of pre-calculated values that define current limit level.
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_settings | ( | void | ) |
int main | ( | void | ) |
uint16_t lim_data[8] = { 100, 200, 300, 400, 500, 600, 700, 867 } |
const uint8_t lim_val[8] = { 223, 241, 247, 250, 252, 253, 254, 255 } |