M-BUS RF 2 Click Example.
Description
This example demonstrates the use of M-BUS RF 2 Click board by processing the incoming data and displaying them on the USB UART.
The demo application is composed of two sections :
Application Init
Initializes the driver and performs the Click configuration depending on selected DEMO_EXAMPLE macro.
Application Task
This example contains two examples depending on selected DEMO_EXAMPLE macro: EXAMPLE_TRANSMIT - Device is sending MESSAGE data to be read by receiver. EXAMPLE_RECEIVER - Device is reading transmitted message, and display it on USB UART terminal.
Additional Function
- static void mbusrf2_clear_app_buf ( void )
- static void mbusrf2_log_app_buf ( void )
- static err_t mbusrf2_process ( mbusrf2_t *ctx )
- static err_t mbusrf2_rsp_check ( uint8_t cmd )
- static void mbusrf2_error_check ( err_t error_flag )
- static void mbusrf2_configure_for_example ( void )
- static void mbusrf2_example ( void )
- Author
- Stefan Ilic