ismrx2 2.1.0.0
main.c File Reference

ISM RX 2 Click Example. More...

#include "board.h"
#include "log.h"
#include "ismrx2.h"

Macros

#define DEFAULT_EXAMPLE
 

Functions

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

Detailed Description

ISM RX 2 Click Example.

Description

This application shows capability of ISM RX 2 Click board.

The demo application is composed of two sections :

Application Init

Initialize GPIO pins and LOG module and sets default configuration.

Application Task

Wait for the data pin to go down and start sampling and wait for sync word if it's received collect data to buffer till it receives 0 byte

Note
Application task is broken down into two parts: DEFAULT_EXAMPLE - Collects data from the OOK TX Click board and displays it on the USB UART terminal. MANCHESTER_EXAMPLE - Collects Manchester encoded data from the ISM TX Click board, decodes it and displays it on the USB UART terminal.
Author
Stefan Ilic

Macro Definition Documentation

◆ DEFAULT_EXAMPLE

#define DEFAULT_EXAMPLE

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 )