Browse Source

netopt: Add NETOPT_LAST_ED_LEVEL

master
Joakim Nohlgård 5 years ago
parent
commit
533542314d
  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