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

netopt: Add NETOPT_LAST_ED_LEVEL
This commit is contained in:
Martine Lenders 2017-06-09 10:34:33 +02:00 committed by GitHub
commit 1a4c01a912
2 changed files with 10 additions and 0 deletions

View File

@ -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 */
/**

View File

@ -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",
};