netopt: Add NETOPT_MAC_NO_SLEEP
This commit is contained in:
parent
e39a0a1af5
commit
43a15440cb
@ -193,6 +193,16 @@ typedef enum {
|
||||
*/
|
||||
NETOPT_CSMA_MINBE,
|
||||
|
||||
/**
|
||||
* @brief en/disable blocking of radio sleep when running a duty cycling MAC layer
|
||||
*
|
||||
* (netopt_enable_t) Enabling this option tells the MAC layer to never put
|
||||
* the radio to sleep. Useful in gateways and routers not running on
|
||||
* batteries to improve responsiveness and allow battery powered nodes on
|
||||
* the same network to sleep more often.
|
||||
*/
|
||||
NETOPT_MAC_NO_SLEEP,
|
||||
|
||||
/**
|
||||
* @brief read-only check for a wired interface.
|
||||
*
|
||||
|
||||
@ -51,6 +51,7 @@ static const char *_netopt_strmap[] = {
|
||||
[NETOPT_CSMA_RETRIES] = "NETOPT_CSMA_RETRIES",
|
||||
[NETOPT_CSMA_MAXBE] = "NETOPT_CSMA_MAXBE",
|
||||
[NETOPT_CSMA_MINBE] = "NETOPT_CSMA_MINBE",
|
||||
[NETOPT_MAC_NO_SLEEP] = "NETOPT_MAC_NO_SLEEP",
|
||||
[NETOPT_IS_WIRED] = "NETOPT_IS_WIRED",
|
||||
[NETOPT_DEVICE_TYPE] = "NETOPT_DEVICE_TYPE",
|
||||
[NETOPT_CHANNEL_PAGE] = "NETOPT_CHANNEL_PAGE",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user