ismtx 2.0.0.0
main.c File Reference

ISMTX Click example. More...

#include "board.h"
#include "log.h"
#include "ismtx.h"

Macros

#define PREAMBLE_BYTE   0xFF
 

Functions

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

Variables

uint8_t tx_data_buf [9] = { 'M', 'I', 'K', 'R', 'O', 'E', '\r', '\n', 0 }
 

Detailed Description

ISMTX Click example.

Description

This application shows capability of ISM TX Click board. It sets default configuration, and transmits data in manchester encoding with FSK or ASK signal modulation.

The demo application is composed of two sections :

Application Init

Initialization of log and communication, sets signal modulation, resets device, and sets default configuration for selected modulation.

Application Task

Transmits data via external antenna in span of 100ms.

Note
Default configuration configures device and sets transmission frequency to 433.92 MHz. If selected modulation is FSK frequency deviation is set to 40kHz.
Author
Luka Filipovic

Macro Definition Documentation

◆ PREAMBLE_BYTE

#define PREAMBLE_BYTE   0xFF

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 )

Variable Documentation

◆ tx_data_buf

uint8_t tx_data_buf[9] = { 'M', 'I', 'K', 'R', 'O', 'E', '\r', '\n', 0 }