UNLEASHED:: TX Power setting to SubGhz App

* Works in Read, and Read RAW.
* You can now adjust the TX power for testing devices without desyncing them from inside
* Lets you do RTL testing etc on very low power.

CODE REFACTORED, subghz_txrx_set_tx_power added.
This commit is contained in:
Leeroy
2026-02-04 17:11:03 +11:00
parent 30d48c112b
commit a515f435fc
11 changed files with 167 additions and 23 deletions

View File

@@ -57,6 +57,16 @@ void subghz_txrx_set_preset(
uint8_t* preset_data,
size_t preset_data_size);
/**
* Set TX Power
*
* @param preset_data Data of preset
* @param preset_data_size Size of preset data
* @param tx_power Menu Index of TX Power Setting. (Saves iterating in Config enter)
*/
uint8_t*
subghz_txrx_set_tx_power(uint8_t* preset_data, size_t preset_data_size, uint32_t tx_power);
/**
* Get name of preset
*
@@ -360,7 +370,11 @@ void subghz_txrx_set_default_preset(SubGhzTxRx* instance, uint32_t frequency);
* @param instance - instance Pointer to a SubGhzTxRx
* @param frequency - frequency of new preset
* @param index - index of preset taken from SubGhzSetting
* @param tx_power - index of TX Power menu index option to use.
* @return const char* - name of preset
*/
const char*
subghz_txrx_set_preset_internal(SubGhzTxRx* instance, uint32_t frequency, uint8_t index);
const char* subghz_txrx_set_preset_internal(
SubGhzTxRx* instance,
uint32_t frequency,
uint8_t index,
uint32_t tx_power);