SubGHz: Show reason for TX blocked --nobuild

This commit is contained in:
Willy-JL
2024-05-16 04:51:23 +01:00
parent 08d507c934
commit 9b418c9a07
5 changed files with 75 additions and 34 deletions

View File

@@ -165,6 +165,22 @@ bool furi_hal_subghz_is_frequency_valid(uint32_t value);
*/
uint32_t furi_hal_subghz_set_frequency_and_path(uint32_t value);
typedef enum {
FuriHalSubGhzTxAllowed, // TX is allowed with this configuration
FuriHalSubGhzTxBlockedRegionNotProvisioned, // Region not provisioned and not bypassed
FuriHalSubGhzTxBlockedRegion, // Outside region, needs bypass region
FuriHalSubGhzTxBlockedDefault, // Outisde default, needs extended range
FuriHalSubGhzTxBlockedUnsupported, // No configuration would allow this
} FuriHalSubGhzTx;
/** Сheck if and why transmission is blocked on this frequency with current config
*
* @param value frequency in Hz
*
* @return tx allowed or blocked enum
*/
FuriHalSubGhzTx furi_hal_subghz_check_tx(uint32_t value);
/** Сheck if transmission is allowed on this frequency with your current config
*
* @param value frequency in Hz