annab412  2.1.0.0
Macros | Functions
main.c File Reference

ANNA-B412 Click Example. More...

#include "board.h"
#include "log.h"
#include "annab412.h"

Macros

#define PROCESS_BUFFER_SIZE   200
 
#define DEVICE_NAME   "ANNA-B412 Click"
 
#define RSP_TIMEOUT   20000
 
#define RSP_OK   "OK"
 

Functions

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

Detailed Description

ANNA-B412 Click Example.

Description

This example demonstrates the use of ANNA-B412 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 default configuration.

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

◆ DEVICE_NAME

#define DEVICE_NAME   "ANNA-B412 Click"

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   200

◆ RSP_OK

#define RSP_OK   "OK"

◆ RSP_TIMEOUT

#define RSP_TIMEOUT   20000

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()

void main ( void  )