net/gnrc/lwmac/timeout.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Daniel Krebs
3  * 2016 INRIA
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
22 #ifndef NET_GNRC_LWMAC_TIMEOUT_H
23 #define NET_GNRC_LWMAC_TIMEOUT_H
24 
25 #include <stdint.h>
26 #include <stdbool.h>
27 
28 #include "net/gnrc/netif.h"
29 #include "net/gnrc/lwmac/types.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
38 #define GNRC_LWMAC_TIMEOUT_INITIAL { {}, {}, false, TIMEOUT_DISABLED }
39 
49  uint32_t offset);
50 
58 
70 
82 
89 
96 
97 #ifdef __cplusplus
98 }
99 #endif
100 
101 #endif /* NET_GNRC_LWMAC_TIMEOUT_H */
102 
bool gnrc_lwmac_timeout_is_expired(gnrc_netif_t *netif, gnrc_lwmac_timeout_type_t type)
Check whether LWMAC timeout of type type is expired.
LWMAC timeout structure.
Definition: lwmac/types.h:191
gnrc_lwmac_timeout_type_t
LWMAC timeout types.
Definition: lwmac/types.h:177
void gnrc_lwmac_set_timeout(gnrc_netif_t *netif, gnrc_lwmac_timeout_type_t type, uint32_t offset)
Set LWMAC timeout of type type of offset offset.
void gnrc_lwmac_reset_timeouts(gnrc_netif_t *netif)
Reset all LWMAC timeouts.
Definition for GNRC&#39;s network interfaces.
void gnrc_lwmac_timeout_make_expire(gnrc_lwmac_timeout_t *timeout)
Make a specific LWMAC timeout expired.
Definition of internal types used by LWMAC.
Representation of a network interface.
Definition: netif.h:61
bool gnrc_lwmac_timeout_is_running(gnrc_netif_t *netif, gnrc_lwmac_timeout_type_t type)
Check whether LWMAC timeout of type type is running.
void gnrc_lwmac_clear_timeout(gnrc_netif_t *netif, gnrc_lwmac_timeout_type_t type)
Clear LWMAC timeout of type type.