rn4678 2.0.0.0
|
RN4678 Click example. More...
Macros | |
#define | PROCESS_COUNTER 20 |
#define | PROCESS_RX_BUFFER_SIZE 100 |
#define | PROCESS_PARSER_BUFFER_SIZE 100 |
#define | PROCESS_RSP_ERROR -1 |
#define | PROCESS_RSP_OK 1 |
#define | PROCESS_NO_RSP 0 |
#define | PROCESS_LOG_RSP 0 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
uint8_t | DEVICE_NAME_DATA [20] = { 'R', 'N', '4', '6', '7', '8', ' ', 'c', 'l', 'i', 'c', 'k' } |
uint8_t | EXTENDED_STRING_DATA [10] = { 'S', 'l', 'a', 'v', 'e' } |
uint8_t | PIN_CODE_DATA [10] = { '1', '2', '3', '4' } |
RN4678 Click example.
This example reads and processes data from RN4678 clicks.
The demo application is composed of two sections :
Initializes the driver and configures the click board.
Checks for the received data, reads it and replies with a certain message.
#define PROCESS_COUNTER 20 |
#define PROCESS_LOG_RSP 0 |
#define PROCESS_NO_RSP 0 |
#define PROCESS_PARSER_BUFFER_SIZE 100 |
#define PROCESS_RSP_ERROR -1 |
#define PROCESS_RSP_OK 1 |
#define PROCESS_RX_BUFFER_SIZE 100 |
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |
uint8_t DEVICE_NAME_DATA[20] = { 'R', 'N', '4', '6', '7', '8', ' ', 'c', 'l', 'i', 'c', 'k' } |
uint8_t EXTENDED_STRING_DATA[10] = { 'S', 'l', 'a', 'v', 'e' } |
uint8_t PIN_CODE_DATA[10] = { '1', '2', '3', '4' } |