SLOA208B November 2014 – March 2019 TRF7970A , TRF7970A
#include "msp430.h"
#include "nfc_controller.h"
#include "ndef_image.h"
#include "lp_buttons.h"
// Card Emulation Current Mode
t_sNfcCEMode sCESupportedModes;
void main(void)
{
tNfcState eTempNFCState;
tNfcState eCurrentNFCState;
char pcBytesReceivedString[5];
// CE Variables
t_sNfcCEMode sCEMode;
// Initialize MCU
MCU_init();
//Enable interrupts globally
__enable_interrupt();
// Initialize USB serial port
Serial_init();
// Initialize TRF7970
TRF79x0_init();
// Initialize external push buttons
Buttons_init(BUTTON_ALL);
Buttons_interruptEnable(BUTTON_ALL);
// Initialize TRF7970A idle mode
TRF79x0_idleMode();
// Initialize the NFC controller
NFC_init();
// This function will configure all the settings for each protocol
NFC_configuration();
// Initialize Type 4 Tag RTD Message
T4T_CE_initNDEF();
// Initialize IDs for NFC-A, NFC-B and NFC-F
NFC_initIDs();