2022-04-14 17:05:40 +03:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <math.h>
|
|
|
|
#include <furi.h>
|
|
|
|
#include <furi_hal.h>
|
|
|
|
|
|
|
|
typedef struct SubGhzSetting SubGhzSetting;
|
|
|
|
|
|
|
|
SubGhzSetting* subghz_setting_alloc(void);
|
2022-04-15 19:31:25 +03:00
|
|
|
|
2022-04-14 17:05:40 +03:00
|
|
|
void subghz_setting_free(SubGhzSetting* instance);
|
2022-04-15 19:31:25 +03:00
|
|
|
|
2022-04-14 17:05:40 +03:00
|
|
|
void subghz_setting_load(SubGhzSetting* instance, const char* file_path);
|
2022-04-15 19:31:25 +03:00
|
|
|
|
2022-04-14 17:05:40 +03:00
|
|
|
size_t subghz_setting_get_frequency_count(SubGhzSetting* instance);
|
2022-04-15 19:31:25 +03:00
|
|
|
|
2022-04-14 17:05:40 +03:00
|
|
|
size_t subghz_setting_get_hopper_frequency_count(SubGhzSetting* instance);
|
2022-04-15 19:31:25 +03:00
|
|
|
|
2022-04-14 17:05:40 +03:00
|
|
|
uint32_t subghz_setting_get_frequency(SubGhzSetting* instance, size_t idx);
|
2022-04-15 19:31:25 +03:00
|
|
|
|
2022-04-14 17:05:40 +03:00
|
|
|
uint32_t subghz_setting_get_hopper_frequency(SubGhzSetting* instance, size_t idx);
|
2022-04-15 19:31:25 +03:00
|
|
|
|
2022-04-14 17:05:40 +03:00
|
|
|
uint32_t subghz_setting_get_frequency_default_index(SubGhzSetting* instance);
|
2022-04-15 19:31:25 +03:00
|
|
|
|
|
|
|
uint32_t subghz_setting_get_default_frequency(SubGhzSetting* instance);
|