Skip to content
Snippets Groups Projects
Commit 1a4c01a9 authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

Merge pull request #7138 from gebart/pr/netopt-ed-level

netopt: Add NETOPT_LAST_ED_LEVEL
parents 89716729 53354231
No related branches found
No related tags found
No related merge requests found
......@@ -260,6 +260,15 @@ typedef enum {
*/
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 */
/**
......
......@@ -60,6 +60,7 @@ static const char *_netopt_strmap[] = {
[NETOPT_RF_TESTMODE] = "NETOPT_RF_TESTMODE",
[NETOPT_L2FILTER] = "NETOPT_L2FILTER",
[NETOPT_L2FILTER_RM] = "NETOPT_L2FILTER_RM",
[NETOPT_LAST_ED_LEVEL] = "NETOPT_LAST_ED_LEVEL",
[NETOPT_NUMOF] = "NETOPT_NUMOF",
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment