Loading...
Searching...
No Matches
furi_hal_region.h
1#pragma once
2
3#include <stdbool.h>
4#include <stdint.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct {
11 uint32_t start;
12 uint32_t end;
13 int8_t power_limit;
14 uint8_t duty_cycle;
16
17typedef struct {
18 char country_code[4];
19 uint16_t bands_count;
20 FuriHalRegionBand bands[];
22
24void furi_hal_region_init(void);
25
33const FuriHalRegion* furi_hal_region_get(void);
34
39void furi_hal_region_set(FuriHalRegion* region);
40
45bool furi_hal_region_is_provisioned(void);
46
57const char* furi_hal_region_get_name(void);
58
66bool furi_hal_region_is_frequency_allowed(uint32_t frequency);
67
76const FuriHalRegionBand* furi_hal_region_get_band(uint32_t frequency);
77
78#ifdef __cplusplus
79}
80#endif
Definition furi_hal_region.h:10
Definition furi_hal_region.h:17