This commit is contained in:
Willy-JL
2023-03-09 01:58:42 +00:00
14 changed files with 122 additions and 154 deletions

View File

@@ -78,6 +78,7 @@ typedef struct {
FuriHalSpiBusHandle* spi_bus_handle;
const GpioPin* cc1101_g0_pin;
uint8_t rolling_counter_mult;
bool ext_module_power_disabled;
} FuriHalSubGhz;
extern volatile FuriHalSubGhz furi_hal_subghz;
@@ -335,6 +336,14 @@ uint8_t furi_hal_subghz_get_rolling_counter_mult(void);
*/
void furi_hal_subghz_set_rolling_counter_mult(uint8_t mult);
/** If true - disable 5v power of the external radio module
*/
void furi_hal_subghz_set_external_power_disable(bool state);
/** Get the current state of the external power disable flag
*/
bool furi_hal_subghz_get_external_power_disable(void);
#ifdef __cplusplus
}
#endif