mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-21 10:13:10 +00:00
e17336498d
* Gui: move rotation logic to ViewPort, replace delayed View switch in ViewDispatcher with event filtering and redirection to previous view. * SubGhz: add function description * Gui, Input: add event id to input events. * SubGhz: fix "crashing on ?" * SubGhz: add icon scanning * SubGhz: updated interface read scene, updated interface config scene * Assets: update subghz assets * SubGhz: replaced the picture in the read scene, changed the paths to additional files * SubGhz: fix deadlock in timer callback * SubGhz: fix icon read scene * SubGhz: fix icon read scene * SubGhz: fix duble text transmitter scene * SubGhz: correct spelling. Gui: bigger queue for ViewDispatcher. * SubGhz: fix creation and transmission of dynamic code without the presence of a manufactory key * SubGhz: fix keelog, setting a name in the absence of a manufactory key * SubGhz: fix load bad keelog key * Format sources * Furi: remove garbage from core. GpioTester: fix memory leak and cleanup * Accessor: remove obsolete notification code * MusicPlayer: remove input event injection * Input: rename id to sequence Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
43 lines
971 B
C
43 lines
971 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;
|
|
|
|
/** Allocate SubGhzKeystore
|
|
*
|
|
* @return SubGhzKeystore*
|
|
*/
|
|
SubGhzKeystore* subghz_keystore_alloc();
|
|
|
|
/** Free SubGhzKeystore
|
|
*
|
|
* @param instance
|
|
*/
|
|
void subghz_keystore_free(SubGhzKeystore* instance);
|
|
|
|
/** Loading manufacture key from file
|
|
*
|
|
* @param instance - SubGhzKeystore instance
|
|
* @param filename - const char* full path to the file
|
|
*/
|
|
void subghz_keystore_load(SubGhzKeystore* instance, const char* filename);
|
|
|
|
/** Get array of keys and names manufacture
|
|
*
|
|
* @param instance - SubGhzKeystore instance
|
|
* @return SubGhzKeyArray_t*
|
|
*/
|
|
SubGhzKeyArray_t* subghz_keystore_get_data(SubGhzKeystore* instance);
|