smartbuck 2.0.0.0
|
SMARTBUCK Click example. More...
Functions | |
void | channel_log () |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
float | voltage_res [4] |
float | current_res [4] |
float | power_res [4] |
uint8_t | check_byte |
uint8_t | cnt |
uint8_t | idx |
char | text [50] |
SMARTBUCK Click example.
This application reads voltage, current, and power from all available channels.
The demo application is composed of two sections :
Initializes I2C interface and logger and peforms the click default configuration.
Sends command for updating data registers with new converted data, then waits 500ms and after that reads new data from data registers. In this way we can get voltage, current and power data from activated channels. Results are being logged on USB UART.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
void channel_log | ( | ) |
int main | ( | void | ) |
uint8_t check_byte |
uint8_t cnt |
float current_res[4] |
uint8_t idx |
float power_res[4] |
char text[50] |
float voltage_res[4] |