flipperzero-firmware/lib/fl_subghz/subghz_keystore.h
Skorpionm 1a039a86f8
Skorp sub ghz add protocol (#581)
* SubGhz: Add Star Line protocol
* Rollback ReadMe changes
* SubGhz: add shared keystore for keeloq derived protocols.
* SubGhz: add missing key load routine

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-07-16 18:37:48 +03:00

26 lines
583 B
C

#pragma once
#include <m-string.h>
#include <m-array.h>
#include <stdint.h>
typedef struct {
string_t name;
uint64_t key;
uint16_t type;
} SubGhzKey;
ARRAY_DEF(SubGhzKeyArray, SubGhzKey, M_POD_OPLIST)
#define M_OPL_SubGhzKeyArray_t() ARRAY_OPLIST(SubGhzKeyArray, M_POD_OPLIST)
typedef struct SubGhzKeystore SubGhzKeystore;
SubGhzKeystore* subghz_keystore_alloc();
void subghz_keystore_free(SubGhzKeystore* instance);
void subghz_keystore_load(SubGhzKeystore* instance, const char* filename);
SubGhzKeyArray_t* subghz_keystore_get_data(SubGhzKeystore* instance);