Option to disable auto 5v power for external radio module

Now you can use 3.3v modules without wasting a battery (bonus a bit low noise on power line)
This commit is contained in:
MX
2023-03-09 04:02:31 +03:00
parent da9b968fc9
commit 1249ce9b94
4 changed files with 50 additions and 2 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;
@@ -321,6 +322,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