Timeout handling of LWMAC.
More...
#include <stdint.h>
#include <stdbool.h>
#include "net/gnrc/netif.h"
#include "net/gnrc/lwmac/types.h"
Go to the source code of this file.
◆ GNRC_LWMAC_TIMEOUT_INITIAL
#define GNRC_LWMAC_TIMEOUT_INITIAL { {}, {}, false, TIMEOUT_DISABLED } |
◆ gnrc_lwmac_clear_timeout()
Clear LWMAC timeout of type type
.
- Parameters
-
[in,out] | netif | the network interface |
[in] | type | LWMAC timeout type |
◆ gnrc_lwmac_reset_timeouts()
Reset all LWMAC timeouts.
- Parameters
-
[in,out] | netif | the network interface |
◆ gnrc_lwmac_set_timeout()
Set LWMAC timeout of type type
of offset offset
.
- Parameters
-
[in,out] | netif | the network interface |
[in] | type | LWMAC timeout type |
[in] | offset | timeout offset |
◆ gnrc_lwmac_timeout_is_expired()
Check whether LWMAC timeout of type type
is expired.
It will clear the timeout once it is found expired.
- Parameters
-
[in,out] | netif | the network interface |
[in] | type | LWMAC timeout type |
- Returns
- true, if timeout of type
type
is expired.
-
false, if timeout of type
type
is not expired, or not exist.
◆ gnrc_lwmac_timeout_is_running()
Check whether LWMAC timeout of type type
is running.
- Parameters
-
[in] | netif | the network interface |
[in] | type | LWMAC timeout type |
- Returns
- true, if timeout of type
type
is running.
-
false, if timeout of type
type
is not running.
◆ gnrc_lwmac_timeout_make_expire()
Make a specific LWMAC timeout expired.
- Parameters
-
[in,out] | timeout | LWMAC timeout |