Flipper Zero Firmware
Loading...
Searching...
No Matches
furi_hal_region.h
1#pragma once
2
3#include <stdbool.h>
4#include <stdint.h>
5#include <stddef.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct {
12 uint32_t start;
13 uint32_t end;
14 int8_t power_limit;
15 uint8_t duty_cycle;
17
18typedef struct {
19 char country_code[4];
20 uint16_t bands_count;
21 FuriHalRegionBand bands[];
23
25void furi_hal_region_init(void);
26
34const FuriHalRegion* furi_hal_region_get(void);
35
40void furi_hal_region_set(FuriHalRegion* region);
41
46bool furi_hal_region_is_provisioned(void);
47
58const char* furi_hal_region_get_name(void);
59
67bool furi_hal_region_is_frequency_allowed(uint32_t frequency);
68
77const FuriHalRegionBand* furi_hal_region_get_band(uint32_t frequency);
78
79#ifdef __cplusplus
80}
81#endif
Definition furi_hal_region.h:11
Definition furi_hal_region.h:18