SLOA227B October 2015 – March 2019 TRF7964A , TRF7964A , TRF7970A , TRF7970A
#include "msp430.h"
#include "nfc_controller.h"
#include "tag_header.h"
#include "lp_buttons.h"
t_sNfcRWMode g_sRWSupportedModes;
t_sNfcRWCommBitrate g_sRWSupportedBitrates;
t_sIsoDEP_RWSetup g_sRWSetupOptions;
uint8_t g_ui8IsoDepInitiatorDID;
uint8_t g_ui8TxBuffer[256];
uint8_t g_ui8TxLength;
void main(void)
{
tNfcState eTempNFCState;
tNfcState eCurrentNFCState;
// Reader/Writer Variables
t_sNfcRWMode sRWMode;
t_sNfcRWCommBitrate sRWBitrate;
// Initialize MCU
MCU_init();
// Enable interrupts globally
__enable_interrupt();
// Initialize USB Communication
Serial_init();
// Initialize TRF7970
TRF79x0_init();
#ifdef MSP430F5529_EXP_BOARD_ENABLED
Buttons_init(BUTTON_ALL);
Buttons_interruptEnable(BUTTON_ALL);
#endif
TRF79x0_idleMode();
// Initialize the NFC Controller
NFC_init();
// This function will configure all the settings for each protocol
NFC_configuration();
// Initialize the RW T2T, T3T, T4T and T5 state machines
T2T_init(g_ui8TxBuffer,256);
T3T_init(g_ui8TxBuffer,256);
T4T_init(g_ui8TxBuffer,256);
T5T_init(g_ui8TxBuffer,256);