ldc 2.0.0.0
|
LDC Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
uint16_t | divider |
LDC Click example.
This example showcases the ability of the device to detect metal objects. It configures a device for reading data from channel 0, checks if ID's are OK and reads data when interrupting is asserted and logs result.
The demo application is composed of two sections :
Initialization of communication modules (I2C, UART) and additional pins. Then configures the device for reading data from channel 0, and checks if device ID's are correctly read, and read the currently set divider.
Checks if interrupt pin is asserted, if so reads data from channel 0. Calculates and returns the frequency of the sensor. If the frequency is greater than 0, then it calculates the inductance of the sensor. It will log error and error values if it occurred.
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 | ) |
uint16_t divider |