Merge pull request #7138 from gebart/pr/netopt-ed-level
netopt: Add NETOPT_LAST_ED_LEVEL
This commit is contained in:
commit
1a4c01a912
@ -260,6 +260,15 @@ typedef enum {
|
|||||||
*/
|
*/
|
||||||
NETOPT_L2FILTER_RM,
|
NETOPT_L2FILTER_RM,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Energy level during the last performed CCA or RX frame
|
||||||
|
*
|
||||||
|
* Get the last ED level available as an int8_t. The source of the
|
||||||
|
* measurement is unspecified and may come from the latest CCA
|
||||||
|
* measurement (CCA mode 1), or from the last received frame.
|
||||||
|
*/
|
||||||
|
NETOPT_LAST_ED_LEVEL,
|
||||||
|
|
||||||
/* add more options if needed */
|
/* add more options if needed */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -60,6 +60,7 @@ static const char *_netopt_strmap[] = {
|
|||||||
[NETOPT_RF_TESTMODE] = "NETOPT_RF_TESTMODE",
|
[NETOPT_RF_TESTMODE] = "NETOPT_RF_TESTMODE",
|
||||||
[NETOPT_L2FILTER] = "NETOPT_L2FILTER",
|
[NETOPT_L2FILTER] = "NETOPT_L2FILTER",
|
||||||
[NETOPT_L2FILTER_RM] = "NETOPT_L2FILTER_RM",
|
[NETOPT_L2FILTER_RM] = "NETOPT_L2FILTER_RM",
|
||||||
|
[NETOPT_LAST_ED_LEVEL] = "NETOPT_LAST_ED_LEVEL",
|
||||||
[NETOPT_NUMOF] = "NETOPT_NUMOF",
|
[NETOPT_NUMOF] = "NETOPT_NUMOF",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user