lyra24p  2.1.0.0
Macros | Functions
main.c File Reference

LYRA 24P Click Example. More...

#include "board.h"
#include "log.h"
#include "lyra24p.h"

Macros

#define DEVICE_NAME   "LYRA 24P Click"
 
#define APP_BUFFER_SIZE   200
 
#define PROCESS_BUFFER_SIZE   200
 
#define RESPONSE_TIMEOUT   100000
 

Functions

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

Detailed Description

LYRA 24P Click Example.

Description

This example demonstrates the use of LYRA 24P 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 a factory reset. In the next step, the demo app requests the LYRA module name, software version, and MAC address and sets the local device name, sets the module into VSP mode and start advertising.

Application Task

Reads and processes all incoming data and displays them on the USB UART.

Additional Function

Note
We have used the BLE Scanner smartphone application for the test.
Author
Nenad Filipovic

Macro Definition Documentation

◆ APP_BUFFER_SIZE

#define APP_BUFFER_SIZE   200

◆ DEVICE_NAME

#define DEVICE_NAME   "LYRA 24P Click"

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   200

◆ RESPONSE_TIMEOUT

#define RESPONSE_TIMEOUT   100000

Function Documentation

◆ application_init()

void application_init ( void  )

< Logger config object.

< Click config object.

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  )

◆ main()

int main ( void  )