mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-18 10:51:54 +03:00
26 lines
551 B
C
26 lines
551 B
C
|
#pragma once
|
||
|
#include <stdint.h>
|
||
|
#include "helpers/key-info.h"
|
||
|
|
||
|
class iButtonKey {
|
||
|
public:
|
||
|
uint8_t get_size();
|
||
|
|
||
|
void set_data(uint8_t* data, uint8_t data_count);
|
||
|
uint8_t* get_data();
|
||
|
uint8_t get_type_data_size();
|
||
|
|
||
|
void set_name(const char* name);
|
||
|
const char* get_name();
|
||
|
|
||
|
void set_type(iButtonKeyType key_type);
|
||
|
iButtonKeyType get_key_type();
|
||
|
|
||
|
iButtonKey();
|
||
|
|
||
|
private:
|
||
|
uint8_t data[IBUTTON_KEY_SIZE] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||
|
const char* name = {0};
|
||
|
|
||
|
iButtonKeyType type = iButtonKeyType::KeyDallas;
|
||
|
};
|