inital nfc code
This commit is contained in:
26
nfcbord.h
Normal file
26
nfcbord.h
Normal file
@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
#include "serial.h"
|
||||
#include "shiftreg.h"
|
||||
#include "inputshiftreg.h"
|
||||
#include "mfrc522.h"
|
||||
#include "softspim.h"
|
||||
#include "staticvector.h"
|
||||
#include "defines.h"
|
||||
|
||||
class NfcBoard
|
||||
{
|
||||
public:
|
||||
ShiftReg<NFC_PORTS> csReg;
|
||||
InputShiftReg<NFC_PORTS> irqReg;
|
||||
SpiMaster spim;
|
||||
SVector<Mfrc522, NFC_PORTS> readers;
|
||||
SVector<uint8_t, NFC_PORTS> irqPins;
|
||||
|
||||
NfcBoard();
|
||||
|
||||
void probe();
|
||||
|
||||
void printNfcDevices(Serial* serial);
|
||||
|
||||
int dispatch(char* inBuffer, Serial* serial);
|
||||
};
|
Reference in New Issue
Block a user