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 
gnrc_lwmac_timeout_is_expired
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.
gnrc_lwmac_set_timeout
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.
gnrc_lwmac_reset_timeouts
void gnrc_lwmac_reset_timeouts(gnrc_netif_t *netif)
Reset all LWMAC timeouts.
gnrc_netif_t
Representation of a network interface.
Definition: netif.h:115
gnrc_lwmac_timeout_make_expire
void gnrc_lwmac_timeout_make_expire(gnrc_lwmac_timeout_t *timeout)
Make a specific LWMAC timeout expired.
gnrc_lwmac_timeout_is_running
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.
netif.h
Definition for GNRC's network interfaces.
gnrc_lwmac_clear_timeout
void gnrc_lwmac_clear_timeout(gnrc_netif_t *netif, gnrc_lwmac_timeout_type_t type)
Clear LWMAC timeout of type type.
gnrc_lwmac_timeout_type_t
gnrc_lwmac_timeout_type_t
LWMAC timeout types.
Definition: types.h:174
gnrc_lwmac_timeout_t
LWMAC timeout structure.
Definition: types.h:188
types.h
Definition of internal types used by LWMAC.