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 
10 #pragma once
11 
24 #include <stdint.h>
25 #include <stdbool.h>
26 
27 #include "net/gnrc/netif.h"
28 #include "net/gnrc/lwmac/types.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
37 #define GNRC_LWMAC_TIMEOUT_INITIAL { {}, {}, false, TIMEOUT_DISABLED }
38 
48  uint32_t offset);
49 
57 
69 
81 
88 
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
Definition for GNRC's network interfaces.
void gnrc_lwmac_timeout_make_expire(gnrc_lwmac_timeout_t *timeout)
Make a specific LWMAC timeout 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.
void gnrc_lwmac_reset_timeouts(gnrc_netif_t *netif)
Reset all LWMAC timeouts.
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_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_clear_timeout(gnrc_netif_t *netif, gnrc_lwmac_timeout_type_t type)
Clear LWMAC timeout of type type.
LWMAC timeout structure.
Definition: types.h:187
Representation of a network interface.
Definition: netif.h:135
Definition of internal types used by LWMAC.
gnrc_lwmac_timeout_type_t
LWMAC timeout types.
Definition: types.h:173