nfcextend 2.0.0.0
main.c File Reference

NfcExtend Click example. More...

#include "board.h"
#include "log.h"
#include "nfcextend.h"

Functions

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

Variables

uint8_t default_password [NFCEXTEND_PASSWORD_LEN] = { 0 }
 

Detailed Description

NfcExtend Click example.

Description

This example showcases how to configure and use the NFC Extend click. The click is an NFC tag interface which uses the I2C serial interface and an RF link interface in order to communicate. The example requires the ST25 NFC Tap application which can be downloaded to your phone.

The demo application is composed of two sections :

Application Init

This function initializes and configures the logger and click modules.

Application Task

This function waits for the interrupt signal, after which it expects data transfers. Once some data has been detected it will open a communication channel with the device transmitting it and show the received data in the UART console.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( )

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

◆ main()

int main ( void )

◆ wait_for_interrupt()

void wait_for_interrupt ( )

Variable Documentation

◆ default_password

uint8_t default_password[NFCEXTEND_PASSWORD_LEN] = { 0 }