mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-15 16:52:38 +03:00
389ff92cc1
* Makefile, Scripts: new linter * About: remove ID from IC * Firmware: remove double define for DIVC/DIVR * Scripts: check folder names too. Docker: replace syntax check with make lint. * Reformat Sources and Migrate to new file naming convention * Docker: symlink clang-format-12 to clang-format * Add coding style guide
20 lines
502 B
C++
20 lines
502 B
C++
#pragma once
|
|
#include "stdint.h"
|
|
|
|
class RfidWriter {
|
|
public:
|
|
RfidWriter();
|
|
~RfidWriter();
|
|
void start();
|
|
void stop();
|
|
void write_em(const uint8_t em_data[5]);
|
|
void write_hid(const uint8_t hid_data[3]);
|
|
void write_indala(const uint8_t indala_data[3]);
|
|
|
|
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);
|
|
void write_reset();
|
|
}; |