mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
SubGHz: New check_tx API, ext modules follow settings
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user