SubGHz: New check_tx API, ext modules follow settings

This commit is contained in:
Willy-JL
2024-05-16 11:57:42 +01:00
parent 0bcd521b29
commit 68a1d63360
17 changed files with 122 additions and 70 deletions

View File

@@ -6,6 +6,7 @@
#pragma once
#include <lib/subghz/devices/preset.h>
#include <lib/subghz/devices/tx.h>
#include <stdbool.h>
#include <stdint.h>
@@ -165,21 +166,13 @@ 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);
SubGhzTx furi_hal_subghz_check_tx(uint32_t value);
/** Сheck if transmission is allowed on this frequency with your current config
*