Loading...
Searching...
No Matches
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"
30
31#ifdef __cplusplus
32extern "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 */
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:188
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:174