mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-18 02:41:36 +03:00
618ddfcd04
* Api-hal-gpio: extend init functions * App Lfrfid: separate protocol layer * App Lfrfid: write EM key scene * App Lfrfid: syntax fix
17 lines
372 B
C++
17 lines
372 B
C++
#pragma once
|
|
#include "stdint.h"
|
|
|
|
class RfidWriter {
|
|
public:
|
|
RfidWriter();
|
|
~RfidWriter();
|
|
void start();
|
|
void stop();
|
|
void write_em(uint8_t em_data[5]);
|
|
|
|
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);
|
|
}; |