mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-19 09:13:11 +00:00
26 lines
486 B
C
26 lines
486 B
C
|
#pragma once
|
||
|
#include "key-info.h"
|
||
|
#include <array>
|
||
|
|
||
|
class RfidKey {
|
||
|
public:
|
||
|
RfidKey();
|
||
|
~RfidKey();
|
||
|
|
||
|
void set_type(LfrfidKeyType type);
|
||
|
void set_data(uint8_t* data, const uint8_t data_size);
|
||
|
|
||
|
LfrfidKeyType get_type();
|
||
|
uint8_t* get_data();
|
||
|
|
||
|
const char* get_type_text();
|
||
|
const uint8_t get_type_data_count();
|
||
|
|
||
|
char* get_name();
|
||
|
|
||
|
private:
|
||
|
std::array<uint8_t, LFRFID_KEY_SIZE> data;
|
||
|
LfrfidKeyType type;
|
||
|
char name[LFRFID_KEY_NAME_SIZE + 1];
|
||
|
};
|