Files
resy/project/rfid/rfid_reader.hpp
2017-06-15 18:22:49 +02:00

27 lines
383 B
C++

#ifndef RFIDREADER_HPP_
#define RFIDREADER_HPP_
#include <cstdint>
#include <thread>
#include "MFRC522.h"
class rfid_reader
{
public:
uint32_t last_id() const;
rfid_reader();
rfid_reader(const rfid_reader &) = delete;
rfid_reader(const rfid_reader &&) = delete;
~rfid_reader() = default;
void loop();
private:
MFRC522 mfrc;
uint32_t uid;
std::thread thread;
};
#endif