mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 23:10:22 +00:00
7a13391b2b
* File worker: file operations helper. * Notification app: removed yield * File worker: write operations, calls to system file widgets * App ibutton: use file worker * Lfrfid: generic key loading, add path helper and hex conversion to lib * FileWorker: plain C verison * FileWorker: add to lib.mk * FileWorker: add to C sources, instead of CPP * Lfrfid: save scene * App lfrfid: add key scene, saved key menu * App lfrfid: saved key info scene * App lfrfid: delete key scene
19 lines
No EOL
449 B
C++
19 lines
No EOL
449 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]);
|
|
|
|
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();
|
|
}; |