adc15 2.0.0.0
|
ADC15 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
ADC15 Click example.
This example showcases ability of the click board to read adc data from 2 different channels. It's also configuratable to read data in different output rate, resolutions( word/data len ), and gain.
The demo application is composed of two sections :
Initialization of communication modules (SPI, UART) and additional pins for control of the device. Sets default configuration, that sets gain of 1 for both channels(+/-1.2V range) and word/data length of 24bit. In the end reads device ID.
Waits for data ready signal and reads voltage value of both channels, and logs read status and channel voltage 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 | ) |
int main | ( | void | ) |