interrupt handling
Diff: readerComm.h
- Revision:
- 11:d5e8f47880f1
- Parent:
- 10:98a58968dc7d
- Child:
- 13:16a5b43ac874
diff -r 98a58968dc7d -r d5e8f47880f1 readerComm.h --- a/readerComm.h Thu Apr 09 22:09:35 2015 +0000 +++ b/readerComm.h Fri Apr 10 23:14:55 2015 +0000 @@ -16,9 +16,11 @@ void InventoryReqNFC(void); // inventory request to trf7970a void MemReadReqNFC(void); // memory read request to trf7970a void ReadNFC(void); // read teag ID/Single Read -void PollNFC(uint8_t *irqStatus); // read rx complete irq from trf7970a. +void FindNFC(uint8_t *irqStatus); // read irq from trf7970a. void handlerNFC(void); // trf7970 irq handler void StandByNFC(void); +void SleepNFC(void); +bool PollNFC(void); //uint8_t pwr_mode ; @@ -102,23 +104,4 @@ // Misc #define SIXTEEN_SLOTS 0x06 #define ONE_SLOT 0x26 -//power modes -//#if STANDBY -//#endif -// -//#if NFC_3V -//#define PWR_MODE4_3V pwr_mode=0x20 -//#endif -// -//#if NFV_5V -////#define PWR_MODE4_5V pwr_mode=0x21 -//#endif -#define NFC_SLEEP EN2=1 -#define NFC_C_PWR_DOWN EN2=0 -#define NFC_ON EN=1 -#define NFC_OFF EN=0 -//#define PWR_MODE4_3V pwr_mode=0x20 -//#define PWR_MODE4_5V pwr_mode=0x21 -//#define PWR_STANDBY_3V pwr_mode =0x81 //enable this to operate trf7970a in standby mode. -//#define PWR_STANDBY_5V pwr_mode =0x80 \ No newline at end of file