ata663254  2.0.0.0
Functions | Variables
main.c File Reference

Ata663254 Click example. More...

Functions

 LOG_MAP_USB_UART (log_cfg)
 
 ATA663254_MAP_MIKROBUS (cfg, MIKROBUS_1)
 
 Delay_ms (1000)
 
void application_task (void)
 
void main (void)
 

Variables

log_init & logger
 
ata663254_cfg_setupcfg
 
ata663254_initata663254
 

Detailed Description

Ata663254 Click example.

Description

This application demonstates the use of ATA663254 Click board.

The demo application is composed of two sections :

Application Init

Initializes the click driver and enables the click board.

Application Task

Depending on the selected mode, it reads all the received data or sends the desired message each 2 seconds.

Author
MikroE Team

----------------------------------------------------------------— INCLUDES

#include "board.h" #include "log.h" #include "ata663254.h"

---------------------------------------------------------------— VARIABLES

#define DEMO_APP_RECEIVER #define DEMO_APP_TRANSMITTER

static ata663254_t ata663254; static log_t logger;

static char demo_message[ 9 ] = { 'M', 'i', 'k', 'r', 'o', 'E', 13, 10, 0 }; static char rec_buf[ 50 ] = { 0 };

---------------------------------------------------— APPLICATION FUNCTIONS

void application_init ( void ) { log_cfg_t log_cfg; ata663254_cfg_t cfg;

/** 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.

Function Documentation

◆ application_task()

void application_task ( void  )

◆ ATA663254_MAP_MIKROBUS()

ATA663254_MAP_MIKROBUS ( cfg  ,
MIKROBUS_1   
)

◆ Delay_ms()

Delay_ms ( 1000  )

◆ LOG_MAP_USB_UART()

LOG_MAP_USB_UART ( log_cfg  )

◆ main()

void main ( void  )

Variable Documentation

◆ ata663254

ata663254_enable & ata663254

◆ cfg

◆ logger

log_info & logger