Go to the documentation of this file.
21 #ifndef NET_GNRC_MAC_TIMEOUT_H
22 #define NET_GNRC_MAC_TIMEOUT_H
37 #define GNRC_MAC_EVENT_TIMEOUT_TYPE (0x4400)
int16_t kernel_pid_t
Unique process identifier.
uint8_t timeout_num
Timeout number.
#define assert(cond)
abort the program if assertion is false
Structure holding the GNRC_MAC timeouts.
gnrc_mac_timeout_type_t type
GNRC_MAC timeout type.
POSIX.1-2008 compliant version of the assert macro.
gnrc_mac_timeout_event_t * timeouts
The gnrc_mac timeout unites.
void gnrc_mac_reset_timeouts(gnrc_mac_timeout_t *mac_timeout)
Reset all the MAC timeouts.
void gnrc_mac_clear_timeout(gnrc_mac_timeout_t *mac_timeout, gnrc_mac_timeout_type_t type)
Clear a MAC timeout of type.
evtimer_msg_event_t msg_event
The timeout message event.
evtimer_t evtimer
evtimer entity which stores the timeout list.
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.
IPC-based evtimer definitions.
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...
int gnrc_mac_find_timeout(gnrc_mac_timeout_t *mac_timeout, gnrc_mac_timeout_type_t type)
Find a MAC timeout of type.
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.
gnrc_mac_timeout_type_t
Definitions of GNRC_MAC timeout types.
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.
@ GNRC_MAC_TIMEOUT_DISABLED
Timeout is disabled, not in used.
Structure of the GNRC_MAC timeout event.