Loading...
Searching...
No Matches
subghz_setting.h
1
2#pragma once
3
4#include <math.h>
5#include <furi.h>
6#include <furi_hal.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#define SUBGHZ_SETTING_DEFAULT_PRESET_COUNT 4
14
15typedef struct SubGhzSetting SubGhzSetting;
16
17SubGhzSetting* subghz_setting_alloc(void);
18
19void subghz_setting_free(SubGhzSetting* instance);
20
21void subghz_setting_load(SubGhzSetting* instance, const char* file_path);
22
23size_t subghz_setting_get_frequency_count(SubGhzSetting* instance);
24
25size_t subghz_setting_get_hopper_frequency_count(SubGhzSetting* instance);
26
27size_t subghz_setting_get_preset_count(SubGhzSetting* instance);
28
29const char* subghz_setting_get_preset_name(SubGhzSetting* instance, size_t idx);
30
31int subghz_setting_get_inx_preset_by_name(SubGhzSetting* instance, const char* preset_name);
32
33uint8_t* subghz_setting_get_preset_data(SubGhzSetting* instance, size_t idx);
34
35size_t subghz_setting_get_preset_data_size(SubGhzSetting* instance, size_t idx);
36
37uint8_t* subghz_setting_get_preset_data_by_name(SubGhzSetting* instance, const char* preset_name);
38
39bool subghz_setting_load_custom_preset(
40 SubGhzSetting* instance,
41 const char* preset_name,
42 FlipperFormat* fff_data_file);
43
44bool subghz_setting_delete_custom_preset(SubGhzSetting* instance, const char* preset_name);
45
46uint32_t subghz_setting_get_frequency(SubGhzSetting* instance, size_t idx);
47
48uint32_t subghz_setting_get_hopper_frequency(SubGhzSetting* instance, size_t idx);
49
50uint32_t subghz_setting_get_frequency_default_index(SubGhzSetting* instance);
51
52uint32_t subghz_setting_get_default_frequency(SubGhzSetting* instance);
53
54#ifdef __cplusplus
55}
56#endif
Flipper File Format helper library.
Furi HAL API.
Definition flipper_format.c:12
Definition subghz_setting.c:179