|
spectral 2.2.0
|
Spectral Click example. More...
Macros | |
| #define | PROCESS_COUNTER 10 |
| #define | PROCESS_RX_BUFFER_SIZE 200 |
| #define | PROCESS_PARSER_BUFFER_SIZE 400 |
| #define | SPECTRAL_CMD_DATA "ATDATA" |
| #define | SPECTRAL_CMD_AT "AT" |
| #define | SPECTRAL_CMD_GAIN "ATGAIN=2" |
| #define | SPECTRAL_CMD_MODE "ATTCSMD=2" |
Functions | |
| void | spectral_process (void) |
| void | parser_application () |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
Spectral Click example.
This example reads and processes data from Spectral Clicks.
The demo application is composed of two sections :
Initializes the driver and configures the sensor.
Reads the values of all 6 channels and parses it to the USB UART each second.
| #define PROCESS_COUNTER 10 |
| #define PROCESS_PARSER_BUFFER_SIZE 400 |
| #define PROCESS_RX_BUFFER_SIZE 200 |
| #define SPECTRAL_CMD_AT "AT" |
| #define SPECTRAL_CMD_DATA "ATDATA" |
| #define SPECTRAL_CMD_GAIN "ATGAIN=2" |
| #define SPECTRAL_CMD_MODE "ATTCSMD=2" |
| void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |
| void parser_application | ( | ) |
| void spectral_process | ( | void | ) |