mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-24 03:07:21 +03:00
1a039a86f8
* 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>
26 lines
583 B
C
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);
|