Browse Source

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

netopt: Add NETOPT_LAST_ED_LEVEL
master
Martine Lenders 6 years ago committed by GitHub
parent
commit
1a4c01a912
  1. 9
      sys/include/net/netopt.h
  2. 1
      sys/net/crosslayer/netopt/netopt.c

9
sys/include/net/netopt.h

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

1
sys/net/crosslayer/netopt/netopt.c

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

Loading…
Cancel
Save