net/gnrc/lwmac/timeout.h¶
Timeout handling of LWMAC.
-
GNRC_LWMAC_TIMEOUT_INITIAL¶ Static initializer for gnrc_lwmac_timeout_t.
1
{ {}, {}, false, TIMEOUT_DISABLED }
-
void
gnrc_lwmac_set_timeout(gnrc_netif_t * netif,sys/include/net/gnrc/lwmac/types.h::gnrc_lwmac_timeout_type_ttype, uint32_t offset)¶ Set LWMAC timeout of type
typeof offsetoffset.Parameters
netif: the network interface type: LWMAC timeout type offset: timeout offset
-
void
gnrc_lwmac_clear_timeout(gnrc_netif_t * netif,sys/include/net/gnrc/lwmac/types.h::gnrc_lwmac_timeout_type_ttype)¶ Clear LWMAC timeout of type
type.Parameters
netif: the network interface type: LWMAC timeout type
-
bool
gnrc_lwmac_timeout_is_running(gnrc_netif_t * netif,sys/include/net/gnrc/lwmac/types.h::gnrc_lwmac_timeout_type_ttype)¶ Check whether LWMAC timeout of type
typeis running.Parameters
netif: the network interface type: LWMAC timeout type Return values
- true, if timeout of type
typeis running. - false, if timeout of type
typeis not running.
- true, if timeout of type
-
bool
gnrc_lwmac_timeout_is_expired(gnrc_netif_t * netif,sys/include/net/gnrc/lwmac/types.h::gnrc_lwmac_timeout_type_ttype)¶ Check whether LWMAC timeout of type
typeis expired.It will clear the timeout once it is found expired.
Parameters
netif: the network interface type: LWMAC timeout type Return values
- true, if timeout of type
typeis expired. - false, if timeout of type
typeis not expired, or not exist.
- true, if timeout of type
-
void
gnrc_lwmac_reset_timeouts(gnrc_netif_t * netif)¶ Reset all LWMAC timeouts.
Parameters
netif: the network interface
-
void
gnrc_lwmac_timeout_make_expire(gnrc_lwmac_timeout_t * timeout)¶ Make a specific LWMAC timeout expired.
Parameters
timeout: LWMAC tiemout