mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-24 05:23:06 +00: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;
|
||
|
};
|