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"
#include "generic_pointer.h"

Macros

#define PROCESS_COUNTER   10
 
#define PROCESS_RX_BUFFER_SIZE   256
 
#define PROCESS_PARSER_BUFFER_SIZE   256
 
#define LOG_HEX   0
 
#define LOG_STR   1
 
#define LOG_DEC   2
 
#define DEMO_APP_RECEIVER
 

Functions

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

Variables

uint8_t msg [] = "MikroE - FW team"
 

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

Note: You can't send less then 10 data byte!

Author
MikroE Team

Macro Definition Documentation

◆ DEMO_APP_RECEIVER

#define DEMO_APP_RECEIVER

◆ LOG_DEC

#define LOG_DEC   2

◆ LOG_HEX

#define LOG_HEX   0

◆ LOG_STR

#define LOG_STR   1

◆ PROCESS_COUNTER

#define PROCESS_COUNTER   10

◆ PROCESS_PARSER_BUFFER_SIZE

#define PROCESS_PARSER_BUFFER_SIZE   256

◆ PROCESS_RX_BUFFER_SIZE

#define PROCESS_RX_BUFFER_SIZE   256

Function Documentation

◆ application_init()

void application_init ( void  )

◆ application_task()

void application_task ( void  )

◆ main()

void main ( void  )

Variable Documentation

◆ msg

uint8_t msg[] = "MikroE - FW team"