enocan3  2.0.0.0
Functions | Variables
main.c File Reference

Enocean3 Click example. More...

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

Functions

void make_response (enocean3_packet_t *rsp, uint16_t *rsp_length_size)
 
void log_response ()
 
void log_example ()
 
void check_response ()
 
void application_init (void)
 
void application_task (void)
 
void main (void)
 

Variables

enocean3_packet_t response
 
uint16_t response_size_cnt
 
uint8_t rsp_check
 

Detailed Description

Enocean3 Click example.

Description

This example reads and processes data from EnOcean 3 clicks.

The demo application is composed of two sections :

Application Init

Initializes the driver and sets the driver handler.

Application Task

Reads the received data and parses it on the USB UART if the response buffer is ready.

Additional Function

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void  )

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void  )

◆ check_response()

void check_response ( )

◆ log_example()

void log_example ( )

◆ log_response()

void log_response ( )

◆ main()

void main ( void  )

◆ make_response()

void make_response ( enocean3_packet_t rsp,
uint16_t *  rsp_length_size 
)

Variable Documentation

◆ response

◆ response_size_cnt

uint16_t response_size_cnt

◆ rsp_check

uint8_t rsp_check