interrupt handling
Diff: interruptStuff.h
- Revision:
- 2:bd5afc5aa139
- Child:
- 3:eaae5433ab45
diff -r 1eb96189824d -r bd5afc5aa139 interruptStuff.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/interruptStuff.h Thu Mar 05 20:16:40 2015 +0000 @@ -0,0 +1,32 @@ +/* + Header file for interruptHandler.cpp +*/ + +void setupIrq(void); +void readIrqStatus(uint8_t *buffer); +void nfcModeIrq(uint8_t *Register); +void targetIrq(uint8_t *Register); +void howToHandleTrf7970Irq(uint8_t *irq_status); +void trf7970IrqHandler(void); + +// NFC and tag emulation settings +#define NFC106AC 0x29 +#define NFC212AC 0x2A +#define NFC424AC 0x2B +#define NFC106PA 0x21 +#define NFC212PA 0x22 +#define NFC424PA 0x23 + +#define TAG14443A 0x24 +#define TAG14443B 0x25 +#define TAG15693 0x26 +#define TAGFelica 0x27 + +#define TAG106 0x00 +#define TAG212 0x21 +#define TAG424 0x42 +#define TAG848 0x63 + +#define FIFO_LEN 32 +#define FIFO_MORE 26 +