This repository has been archived on 2024-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
zamek-hswro/NfcAuthenticator.h

26 lines
462 B
C++

#ifndef NFCAUTHENTICATOR_H
#define NFCAUTHENTICATOR_H
#include "IAuthenticator.h"
#include <MFRC522.h>
class ILogger;
class NfcAuthenticator: public IAuthenticator
{
public:
NfcAuthenticator(int nfcSlaveSelectPin, int nfcResetPin, const ILogger& logger);
virtual ~NfcAuthenticator();
virtual Key getKey();
private:
bool initializeCard();
void releaseCard();
MFRC522 rfid;
const ILogger& logger;
};
#endif // NFCAUTHENTICATOR_H