feat(802.15.4): introduce a series of APIs related power table

This commit is contained in:
zwx
2024-12-26 20:16:11 +08:00
parent 86eed3f3ab
commit 22a5444773
7 changed files with 170 additions and 15 deletions

View File

@@ -19,6 +19,14 @@ extern "C" {
#define IEEE802154_TAG "ieee802154"
#define IEEE802154_OQPSK_2P4G_CHANNEL_MIN 11
#define IEEE802154_OQPSK_2P4G_CHANNEL_MAX 26
static inline bool ieee802154_is_valid_channel(uint8_t channel)
{
return ((channel <= IEEE802154_OQPSK_2P4G_CHANNEL_MAX) && (channel >= IEEE802154_OQPSK_2P4G_CHANNEL_MIN));
}
#if SOC_PM_MODEM_RETENTION_BY_REGDMA && CONFIG_FREERTOS_USE_TICKLESS_IDLE
#define IEEE802154_RF_ENABLE() ieee802154_rf_enable()
#define IEEE802154_RF_DISABLE() ieee802154_rf_disable()