FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
grove_rfid_reader.h File Reference

API to handle Grove 125KHz RFID Reader. More...

#include "../bits.h"
#include "../gpio.h"
#include "../int.h"
#include "../interrupts.h"
#include "../pci.h"
#include "../streambuf.h"
#include "../streams.h"
#include "../time.h"
#include "../uart_commons.h"
#include "wiegand.h"
Include dependency graph for grove_rfid_reader.h:

Go to the source code of this file.

Classes

class  devices::rfid::Grove125KHzRFIDReaderUART< UART_ >
 Support for seeedstudio Grove 125KHz RFID Reader in UART mode. More...
 
class  devices::rfid::Grove125KHzRFIDReaderWiegandEXT< DATA0_, DATA1_ >
 Support for seeedstudio Grove 125KHz RFID Reader in Wiegand mode. More...
 
class  devices::rfid::Grove125KHzRFIDReaderWiegandPCI< DATA0_, DATA1_ >
 Support for seeedstudio Grove 125KHz RFID Reader in Wiegand mode. More...
 

Namespaces

namespace  devices
 Defines all API for all external devices supported by FastArduino.
 
namespace  devices::rfid
 This namespace contains classes to support various RFID devices.
 

Macros

#define REGISTER_GROVE_RFID_READER_INT_ISR(DATA0_INT, DATA1_INT, READER)
 Register the necessary ISR (Interrupt Service Routine) for a devices::rfid::Grove125KHzRFIDReaderWiegandEXT to work correctly. More...
 
#define REGISTER_GROVE_RFID_READER_PCI_ISR(DATA01_PCI, READER)
 Register the necessary ISR (Interrupt Service Routine) for a devices::rfid::Grove125KHzRFIDReaderWiegandPCI to work correctly. More...
 

Detailed Description

API to handle Grove 125KHz RFID Reader.

Definition in file grove_rfid_reader.h.

Macro Definition Documentation

◆ REGISTER_GROVE_RFID_READER_INT_ISR

#define REGISTER_GROVE_RFID_READER_INT_ISR (   DATA0_INT,
  DATA1_INT,
  READER 
)
Value:
ISR(CAT3(INT, DATA0_INT, _vect)) \
{ \
devices::rfid::isr_handler_grove::callback_fall_0<DATA0_INT, DATA1_INT, READER>(); \
} \
ISR(CAT3(INT, DATA1_INT, _vect)) \
{ \
devices::rfid::isr_handler_grove::callback_fall_1<DATA0_INT, DATA1_INT, READER>(); \
}

Register the necessary ISR (Interrupt Service Routine) for a devices::rfid::Grove125KHzRFIDReaderWiegandEXT to work correctly.

Note
Grove125KHzRFIDReaderWiegandEXT uses 2 EXT pins, hence this macro will generate 2 ISR, one for each pin.
Parameters
DATA0_INTthe number of the INT vector for the given DATA0 pin of Grove RFID reader device
DATA1_INTthe number of the INT vector for the given DATA1 pin of Grove RFID reader device
READERthe actual Grove125KHzRFIDReaderWiegandEXT<...> used
See also
Grove125KHzRFIDReaderWiegandEXT

Definition at line 49 of file grove_rfid_reader.h.

◆ REGISTER_GROVE_RFID_READER_PCI_ISR

#define REGISTER_GROVE_RFID_READER_PCI_ISR (   DATA01_PCI,
  READER 
)
Value:
ISR(CAT3(PCINT, DATA01_PCI, _vect)) \
{ \
devices::rfid::isr_handler_grove::callback_fall_0_or_1<DATA01_PCI, READER>(); \
} \

Register the necessary ISR (Interrupt Service Routine) for a devices::rfid::Grove125KHzRFIDReaderWiegandPCI to work correctly.

Note
Grove125KHzRFIDReaderWiegandPCI uses 2 PCI pins which must be on the same I/O port.
Parameters
DATA01_PCIthe number of the PCINT vector for the given DATA0 & DATA1 pins of Grove RFID reader device
READERthe actual Grove125KHzRFIDReaderWiegandPCI<...> used
See also
Grove125KHzRFIDReaderWiegandPCI

Definition at line 71 of file grove_rfid_reader.h.