![]() |
EVE 1.0
|
Driver for NFC in EVE. More...
#include <sys/etimer.h>
#include <dev/spi.h>
#include <core/rtos.h>
#include <nfc_t2t_lib.h>
#include "ph_NxpBuild_App.h"
#include "ph_NxpBuild.h"
#include <ph_Status.h>
#include <ph_RefDefs.h>
#include <phbalReg.h>
#include <phOsal.h>
#include <phpalI14443p3a.h>
#include <phpalI14443p4.h>
#include <phpalFelica.h>
#include <phpalI14443p3b.h>
#include <phpalI14443p4a.h>
#include <phpalI18092mPI.h>
#include <phpalMifare.h>
#include <phpalI14443p4mC.h>
#include <phpalSli15693.h>
#include <phpalI18000p3m3.h>
#include <phalI18000p3m3.h>
#include <phalT1T.h>
#include <phceT4T.h>
#include <phalFelica.h>
#include <phacDiscLoop.h>
Go to the source code of this file.
Data Structures | |
struct | nfc_nxp_t |
NFC driver descriptor: static structure for configuration of driver instance. More... | |
struct | nfc_nxp_state_t |
holds current NFC instance state variables. More... | |
Typedefs | |
typedef void(* | nfc_irq_callback_t) (const struct nfc_nxp_t *Nfc) |
The callback is called on interrupt from pn512. More... | |
Functions | |
bool | NfcNxpLibInit (const struct nfc_nxp_t *Nfc) |
Initialises NFC instance structure, connects it to SPI. Powers up pn512 if supported. More... | |
bool | NfcNxpLibDisable (const struct nfc_nxp_t *Nfc) |
Disables interrupts from pn512 and releases SPI. Powers down pn512 if supported by product HW. More... | |
void | NfcNxpResetReader (const struct nfc_nxp_t *Nfc) |
Performs pn512 HW reset. pn512 switches to configuration mode after reset. NB! It should be verified that pn512 is in configuration mode with NfcNxpGetMode() function after reset before any subsequent operation. More... | |
bool | NfcNxpSetup (const struct nfc_nxp_t *Nfc) |
Sets up pn512 registers according to preconfigured parameters. NB! pn512 should be in configuration mode. More... | |
uint8_t | NfcNxpDiscovery (const struct nfc_nxp_t *Nfc, bool Continue) |
Starts cards detection phase. During execution NFC lib is in the reader mode. NFC lib loops through all the available (configured) RF technologies. More... | |
void | NfcNxpGetUid (const struct nfc_nxp_t *Nfc, uint8_t TagIndex, uint8_t **Uid, uint8_t *UidLen) |
Returns UID of one of detected tags. More... | |
void | NfcNxpSetNdefFile (const struct nfc_nxp_t *Nfc, uint8_t *NdefFile, uint16_t NdefFileSize) |
Sets a memory buffer as an NDEF file for subsequent NfcNrfCardEmulation function call. More... | |
void | NfcNxpCardEmulation (const struct nfc_nxp_t *Nfc) |
Starts external RF detection phase During execution NFC lib is in the card emulation mode. . More... | |
void | NfcNxpInterruptCb (const struct nfc_nxp_t *Nfc) |
Driver's HW interrupt callback to be exposed to EVE config. More... | |
Driver for NFC in EVE.
Definition in file nfc-nxp.h.