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
Raw Normal View History

2017-12-17 11:31:13 +00:00
#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