Skip to content

Commit 11b3f93

Browse files
committed
Merge branch 'support/ieee802154_get_rssi_comp_from_phy_v5.4' into 'release/v5.4'
feat(802.15.4): support ieee802154 get rssi comp from phylib (v5.4) See merge request espressif/esp-idf!37051
2 parents bcb3c32 + 44e7fec commit 11b3f93

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -9,8 +9,18 @@
99
#include <stdbool.h>
1010
#include "hal/ieee802154_common_ll.h"
1111

12+
#ifdef __cplusplus
13+
extern "C" {
14+
#endif
15+
16+
extern uint32_t bt_bb_get_rssi_comp(void);
17+
1218
#define IEEE802154_TXPOWER_VALUE_MAX 20
1319
#define IEEE802154_TXPOWER_VALUE_MIN -24
1420
#define IEEE802154_TXPOWER_INDEX_MIN 0
1521

16-
#define IEEE802154_RSSI_COMPENSATION_VALUE 10
22+
#define IEEE802154_RSSI_COMPENSATION_VALUE bt_bb_get_rssi_comp()
23+
24+
#ifdef __cplusplus
25+
}
26+
#endif

0 commit comments

Comments
 (0)