lr2 2.1.0.0
|
LR 2 Click Example. More...
Macros | |
#define | DEMO_APP_TRANSMITTER |
#define | PROCESS_COUNTER 5 |
#define | PROCESS_RX_BUFFER_SIZE 300 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
uint8_t | resp_buf [50] |
uint8_t | send_message [9] = { 'M', 'i', 'k', 'r', 'o', 'E', 13, 10, 0 } |
LR 2 Click Example.
This example shows the usage of the LR 2 Click board by transmitting and receiving data.
The demo application is composed of two sections :
Initializes the driver and performs default configuration and reads System version.
Transmitter mode - sends a desired message each second and checks if it is sent successfully. Receiver mode - displays all the received characters on USB UART.
#define DEMO_APP_TRANSMITTER |
#define PROCESS_COUNTER 5 |
#define PROCESS_RX_BUFFER_SIZE 300 |
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 | ) |
uint8_t resp_buf[50] |
uint8_t send_message[9] = { 'M', 'i', 'k', 'r', 'o', 'E', 13, 10, 0 } |