Skip to content
Snippets Groups Projects
Commit 43a15440 authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

netopt: Add NETOPT_MAC_NO_SLEEP

parent e39a0a1a
No related branches found
No related tags found
No related merge requests found
...@@ -193,6 +193,16 @@ typedef enum { ...@@ -193,6 +193,16 @@ typedef enum {
*/ */
NETOPT_CSMA_MINBE, 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. * @brief read-only check for a wired interface.
* *
......
...@@ -51,6 +51,7 @@ static const char *_netopt_strmap[] = { ...@@ -51,6 +51,7 @@ static const char *_netopt_strmap[] = {
[NETOPT_CSMA_RETRIES] = "NETOPT_CSMA_RETRIES", [NETOPT_CSMA_RETRIES] = "NETOPT_CSMA_RETRIES",
[NETOPT_CSMA_MAXBE] = "NETOPT_CSMA_MAXBE", [NETOPT_CSMA_MAXBE] = "NETOPT_CSMA_MAXBE",
[NETOPT_CSMA_MINBE] = "NETOPT_CSMA_MINBE", [NETOPT_CSMA_MINBE] = "NETOPT_CSMA_MINBE",
[NETOPT_MAC_NO_SLEEP] = "NETOPT_MAC_NO_SLEEP",
[NETOPT_IS_WIRED] = "NETOPT_IS_WIRED", [NETOPT_IS_WIRED] = "NETOPT_IS_WIRED",
[NETOPT_DEVICE_TYPE] = "NETOPT_DEVICE_TYPE", [NETOPT_DEVICE_TYPE] = "NETOPT_DEVICE_TYPE",
[NETOPT_CHANNEL_PAGE] = "NETOPT_CHANNEL_PAGE", [NETOPT_CHANNEL_PAGE] = "NETOPT_CHANNEL_PAGE",
......
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