mbusrf4  2.0.0.0
Macros | Functions | Variables
main.c File Reference

MBusRf4 Click example. More...

#include "board.h"
#include "log.h"
#include "mbusrf4.h"
#include "string.h"

Macros

#define PROCESS_COUNTER   10
 
#define PROCESS_RX_BUFFER_SIZE   500
 
#define PROCESS_PARSER_BUFFER_SIZE   1000
 
#define DEMO_APP_RECEIVER
 

Functions

void application_init (void)
 
void application_task (void)
 
void main (void)
 

Variables

uint8_t tx_buffer [20]
 

Detailed Description

MBusRf4 Click example.

Description

This example reads and processes data from M-BUS RF 4 clicks.

The demo application is composed of two sections :

Application Init

Initializes driver init, reads basic information and checks communication

Application Task

In the RX mode it is waiting to receive data from another module... In the TX mode sends the data packet....

Additional Function

Author
MikroE Team

Macro Definition Documentation

◆ DEMO_APP_RECEIVER

#define DEMO_APP_RECEIVER

◆ PROCESS_COUNTER

#define PROCESS_COUNTER   10

◆ PROCESS_PARSER_BUFFER_SIZE

#define PROCESS_PARSER_BUFFER_SIZE   1000

◆ PROCESS_RX_BUFFER_SIZE

#define PROCESS_RX_BUFFER_SIZE   500

Function Documentation

◆ application_init()

void application_init ( void  )

◆ application_task()

void application_task ( void  )

◆ main()

void main ( void  )

Variable Documentation

◆ tx_buffer

uint8_t tx_buffer[20]
Initial value:
=
{
0x44, 0x12, 0x34, 0x56, 0x78,
0x9A, 0xBC, 0xDF, 0x01, 0x02,
0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x87
}