ata6570 2.0.0.0
main.c File Reference

Ata6570 Click example. More...

#include "board.h"
#include "log.h"
#include "ata6570.h"

Macros

#define PROCESS_RX_BUFFER_SIZE   500
 
#define DEMO_APP_TRANSMITER
 

Functions

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

Detailed Description

Ata6570 Click example.

Description

This application is interfaces a Controller Area Network (CAN) protocol controller and the physical two-wire CAN bus.

The demo application is composed of two sections :

Application Init

In addition to this module is palced inside normal working mode cappable of tranmission and reception of data.

Application Task

Tranismiter/Receiver task depend on uncommented code Receiver logging each received byte to the UART for data logging, while transmiter send message each 2 seconds.

Author
MikroE Team

Macro Definition Documentation

◆ DEMO_APP_TRANSMITER

#define DEMO_APP_TRANSMITER

◆ PROCESS_RX_BUFFER_SIZE

#define PROCESS_RX_BUFFER_SIZE   500

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 )

◆ main()

int main ( void )