unleashed-firmware/lib/subghz/subghz_keystore.h
あく 421a0f6b97
[FL-1546, FL-1534, FL-1550] Drop F5, Certification preparation, Global application start lock (#585)
* Firmware: drop F5 target
* Rename app-loader to loader
* Update code owners file
* Loader: global application start lock API, minor refactoring
* Archive: update loader usage
* Cli: Command flags, global application start lock
* Apps: update cli API usage
* Bootloader: minor refactoring
* Firmware: minor build refactoring
* SubGhz: GUI packet test
* SubGhz: drop packet transmission and unused presets
* Github: drop F5 from build
* Archive: favorites
* Archive: a little bit more of Favorites
2021-07-18 21:09:00 +03:00

25 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);