Timeout handling of GoMacH. More...
Timeout handling of GoMacH.
Definition in file timeout.h.
#include <stdint.h>#include <stdbool.h>#include "msg.h"#include "xtimer.h"#include "net/gnrc/netif.h"#include "types.h"
Include dependency graph for timeout.h:Go to the source code of this file.
| void | gnrc_gomach_set_timeout (gnrc_netif_t *netif, gnrc_gomach_timeout_type_t type, uint32_t offset) |
Set GoMacH timeout of type type of offset offset. More... | |
| void | gnrc_gomach_clear_timeout (gnrc_netif_t *netif, gnrc_gomach_timeout_type_t type) |
Clear GoMacH timeout of type type. More... | |
| bool | gnrc_gomach_timeout_is_running (gnrc_netif_t *netif, gnrc_gomach_timeout_type_t type) |
Check whether GoMacH timeout of type type is running. More... | |
| bool | gnrc_gomach_timeout_is_expired (gnrc_netif_t *netif, gnrc_gomach_timeout_type_t type) |
Check whether GoMacH timeout of type type is expired. More... | |
| void | gnrc_gomach_reset_timeouts (gnrc_netif_t *netif) |
| Reset all GoMacH timeouts. More... | |
| static void | gnrc_gomach_timeout_make_expire (gnrc_gomach_timeout_t *timeout) |
| Make a specific GoMacH timeout expired. More... | |
| void gnrc_gomach_clear_timeout | ( | gnrc_netif_t * | netif, |
| gnrc_gomach_timeout_type_t | type | ||
| ) |
Clear GoMacH timeout of type type.
| [in,out] | netif | the network interface. |
| [in] | type | GoMacH timeout type. |
| void gnrc_gomach_reset_timeouts | ( | gnrc_netif_t * | netif | ) |
Reset all GoMacH timeouts.
| [in,out] | netif | the network interface. |
| void gnrc_gomach_set_timeout | ( | gnrc_netif_t * | netif, |
| gnrc_gomach_timeout_type_t | type, | ||
| uint32_t | offset | ||
| ) |
Set GoMacH timeout of type type of offset offset.
| [in,out] | netif | the network interface. |
| [in] | type | GoMacH timeout type. |
| [in] | offset | timeout offset. |
| bool gnrc_gomach_timeout_is_expired | ( | gnrc_netif_t * | netif, |
| 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.
| [in,out] | netif | the network interface. |
| [in] | type | GoMacH timeout type. |
type is expired. type is not expired, or not exist. | bool gnrc_gomach_timeout_is_running | ( | gnrc_netif_t * | netif, |
| gnrc_gomach_timeout_type_t | type | ||
| ) |
Check whether GoMacH timeout of type type is running.
| [in] | netif | the network interface. |
| [in] | type | GoMacH timeout type. |
type is running. type is not running.
|
inlinestatic |