2021-05-18 08:37:47 +00:00
|
|
|
#pragma once
|
|
|
|
#include "stdint.h"
|
|
|
|
|
|
|
|
class RfidWriter {
|
|
|
|
public:
|
|
|
|
RfidWriter();
|
|
|
|
~RfidWriter();
|
|
|
|
void start();
|
|
|
|
void stop();
|
2021-06-30 12:02:46 +00:00
|
|
|
void write_em(const uint8_t em_data[5]);
|
|
|
|
void write_hid(const uint8_t hid_data[3]);
|
2022-05-23 13:21:34 +00:00
|
|
|
void write_ioprox(const uint8_t ioprox_data[4]);
|
2021-08-01 22:11:18 +00:00
|
|
|
void write_indala(const uint8_t indala_data[3]);
|
2021-05-18 08:37:47 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void write_gap(uint32_t gap_time);
|
|
|
|
void write_bit(bool value);
|
|
|
|
void write_byte(uint8_t value);
|
|
|
|
void write_block(uint8_t page, uint8_t block, bool lock_bit, uint32_t data);
|
2021-06-28 14:42:30 +00:00
|
|
|
void write_reset();
|
2022-05-06 13:37:10 +00:00
|
|
|
};
|