net/gnrc/gomach/timeout.h

Timeout handling of GoMacH.

void gnrc_gomach_set_timeout(gnrc_netif_t * netif, sys/include/net/gnrc/gomach/types.h::gnrc_gomach_timeout_type_t type, uint32_t offset)

Set GoMacH timeout of type type of offset offset.

Parameters

netif:the network interface.
type:GoMacH timeout type.
offset:timeout offset.

void gnrc_gomach_clear_timeout(gnrc_netif_t * netif, sys/include/net/gnrc/gomach/types.h::gnrc_gomach_timeout_type_t type)

Clear GoMacH timeout of type type.

Parameters

netif:the network interface.
type:GoMacH timeout type.

bool gnrc_gomach_timeout_is_running(gnrc_netif_t * netif, sys/include/net/gnrc/gomach/types.h::gnrc_gomach_timeout_type_t type)

Check whether GoMacH timeout of type type is running.

Parameters

netif:the network interface.
type:GoMacH timeout type.

Return values

  • true, if timeout of type type is running.
  • false, if timeout of type type is not running.
bool gnrc_gomach_timeout_is_expired(gnrc_netif_t * netif, sys/include/net/gnrc/gomach/types.h::gnrc_gomach_timeout_type_t type)

Check whether GoMacH timeout of type type is expired.

It will clear the timeout once it is found expired.

Parameters

netif:the network interface.
type:GoMacH timeout type.

Return values

  • true, if timeout of type type is expired.
  • false, if timeout of type type is not expired, or not exist.
void gnrc_gomach_reset_timeouts(gnrc_netif_t * netif)

Reset all GoMacH timeouts.

Parameters

netif:the network interface.

void gnrc_gomach_timeout_make_expire(gnrc_gomach_timeout_t * timeout)

Make a specific GoMacH timeout expired.

Parameters

timeout:GoMacH timeout