19 lines
328 B
C++
19 lines
328 B
C++
|
#pragma once
|
||
|
|
||
|
#include <acs-driver/mfrc522.hpp>
|
||
|
|
||
|
namespace acs
|
||
|
{
|
||
|
class card_reader
|
||
|
{
|
||
|
mfrc522* rfid_ = nullptr;
|
||
|
mfrc522::uid_t last_uid_;
|
||
|
static mfrc522::mifare_key key_;
|
||
|
public:
|
||
|
explicit card_reader();
|
||
|
|
||
|
uint32_t find_card();
|
||
|
|
||
|
std::string get_student_number();
|
||
|
};
|
||
|
}
|