nplc 2.1.0.0
|
N-PLC Click Example. More...
Macros | |
#define | DEMO_TEXT_MESSAGE "MikroE - N-PLC click board" |
#define | PROCESS_BUFFER_SIZE 200 |
#define | RSP_TIMEOUT_MS 20000 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
N-PLC Click Example.
This example demonstrates the use of an N-PLC click boards by showing the communication between the two click boards configured as a receiver and transmitter.
The demo application is composed of two sections :
Initializes the driver, resets the click board to default config, displays the firmware version and switches to data operation mode. After that displays the selected application mode and sends an initial message in case of transmitter mode.
Reads all the received data and echoes them back to the transmitter. The received and echoed messages will be displayed on the USB UART.
#define DEMO_TEXT_MESSAGE "MikroE - N-PLC click board" |
#define PROCESS_BUFFER_SIZE 200 |
#define RSP_TIMEOUT_MS 20000 |
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 | ) |