21#ifndef NET_GNRC_MAC_TIMEOUT_H
22#define NET_GNRC_MAC_TIMEOUT_H
37#define GNRC_MAC_EVENT_TIMEOUT_TYPE (0x4400)
POSIX.1-2008 compliant version of the assert macro.
#define assert(cond)
abort the program if assertion is false
IPC-based evtimer definitions.
int16_t kernel_pid_t
Unique process identifier.
gnrc_mac_timeout_type_t
Definitions of GNRC_MAC timeout types.
@ GNRC_MAC_TIMEOUT_DISABLED
Timeout is disabled, not in used.
void gnrc_mac_clear_timeout(gnrc_mac_timeout_t *mac_timeout, gnrc_mac_timeout_type_t type)
Clear a MAC timeout of type.
void gnrc_mac_init_timeouts(gnrc_mac_timeout_t *mac_timeout, gnrc_mac_timeout_event_t timeouts[], uint8_t num)
Initialize the MAC timeout module of gnrc_mac before using, it also sets the timeout callback functio...
static bool gnrc_mac_timeout_is_running(gnrc_mac_timeout_t *mac_timeout, gnrc_mac_timeout_type_t type)
Check whether a MAC timeout of type is running or not.
bool gnrc_mac_timeout_is_expired(gnrc_mac_timeout_t *mac_timeout, gnrc_mac_timeout_type_t type)
Check whether a MAC timeout of type has expired or not.
void gnrc_mac_set_timeout(gnrc_mac_timeout_t *mac_timeout, gnrc_mac_timeout_type_t type, uint32_t offset, kernel_pid_t pid)
Set a MAC timeout of type.
int gnrc_mac_find_timeout(gnrc_mac_timeout_t *mac_timeout, gnrc_mac_timeout_type_t type)
Find a MAC timeout of type.
void gnrc_mac_reset_timeouts(gnrc_mac_timeout_t *mac_timeout)
Reset all the MAC timeouts.
Structure of the GNRC_MAC timeout event.
evtimer_msg_event_t msg_event
The timeout message event.
gnrc_mac_timeout_type_t type
GNRC_MAC timeout type.
Structure holding the GNRC_MAC timeouts.
gnrc_mac_timeout_event_t * timeouts
The gnrc_mac timeout unites.
uint8_t timeout_num
Timeout number.
evtimer_t evtimer
evtimer entity which stores the timeout list.