42#ifndef NET_GNRC_GOMACH_GOMACH_H
43#define NET_GNRC_GOMACH_GOMACH_H
67#ifndef CONFIG_GNRC_GOMACH_CP_DURATION_US
68#define CONFIG_GNRC_GOMACH_CP_DURATION_US (10U * US_PER_MS)
91#ifndef CONFIG_GNRC_GOMACH_SUPERFRAME_DURATION_US
92#define CONFIG_GNRC_GOMACH_SUPERFRAME_DURATION_US (300LU * US_PER_MS)
96#error "RTT_FREQUENCY undefined."
98#if ((CONFIG_GNRC_GOMACH_SUPERFRAME_DURATION_US < ((1000LU *US_PER_MS) / RTT_FREQUENCY)) || \
99 (CONFIG_GNRC_GOMACH_SUPERFRAME_DURATION_US < (10 * CONFIG_GNRC_GOMACH_CP_DURATION_US)))
100#undef CONFIG_GNRC_GOMACH_SUPERFRAME_DURATION_US
101#if (((1000LU *US_PER_MS) / RTT_FREQUENCY) > (10 * CONFIG_GNRC_GOMACH_CP_DURATION_US))
102#define CONFIG_GNRC_GOMACH_SUPERFRAME_DURATION_US ((1000LU * US_PER_MS) / RTT_FREQUENCY)
104#define CONFIG_GNRC_GOMACH_SUPERFRAME_DURATION_US (10 * CONFIG_GNRC_GOMACH_CP_DURATION_US)
119#ifndef CONFIG_GNRC_GOMACH_CP_RANDOM_END_US
120#define CONFIG_GNRC_GOMACH_CP_RANDOM_END_US (1U * US_PER_MS)
134#ifndef GNRC_GOMACH_CP_DURATION_MAX_US
135#define GNRC_GOMACH_CP_DURATION_MAX_US (5LU * CONFIG_GNRC_GOMACH_CP_DURATION_US)
150#ifndef GNRC_GOMACH_WAIT_BEACON_TIME_US
151#define GNRC_GOMACH_WAIT_BEACON_TIME_US (GNRC_GOMACH_CP_DURATION_MAX_US)
163#ifndef CONFIG_GNRC_GOMACH_CP_MIN_GAP_US
164#define CONFIG_GNRC_GOMACH_CP_MIN_GAP_US (25U * US_PER_MS)
175#ifndef CONFIG_GNRC_GOMACH_WAIT_RX_END_US
176#define CONFIG_GNRC_GOMACH_WAIT_RX_END_US (6U * US_PER_MS)
187#ifndef CONFIG_GNRC_GOMACH_NO_TX_ISR_US
188#define CONFIG_GNRC_GOMACH_NO_TX_ISR_US (50U * US_PER_MS)
198#ifndef CONFIG_GNRC_GOMACH_MAX_PREAM_INTERVAL_US
199#define CONFIG_GNRC_GOMACH_MAX_PREAM_INTERVAL_US (6U * US_PER_MS)
213#ifndef CONFIG_GNRC_GOMACH_PREAMBLE_INTERVAL_US
214#define CONFIG_GNRC_GOMACH_PREAMBLE_INTERVAL_US (2U * US_PER_MS)
226#ifndef CONFIG_GNRC_GOMACH_BCAST_INTERVAL_US
227#define CONFIG_GNRC_GOMACH_BCAST_INTERVAL_US (1U * US_PER_MS)
241#ifndef GNRC_GOMACH_PREAMBLE_DURATION_US
242#define GNRC_GOMACH_PREAMBLE_DURATION_US \
243 (21LU * CONFIG_GNRC_GOMACH_SUPERFRAME_DURATION_US / 10)
255#ifndef CONFIG_GNRC_GOMACH_VTDMA_SLOT_SIZE_US
256#define CONFIG_GNRC_GOMACH_VTDMA_SLOT_SIZE_US (5U * US_PER_MS)
270#ifndef CONFIG_GNRC_GOMACH_TX_BUSY_THRESHOLD
271#define CONFIG_GNRC_GOMACH_TX_BUSY_THRESHOLD (5U)
282#ifndef CONFIG_GNRC_GOMACH_CP_EXTEND_THRESHOLD
283#define CONFIG_GNRC_GOMACH_CP_EXTEND_THRESHOLD (5U)
295#ifndef CONFIG_GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE
296#define CONFIG_GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE (30U)
309#ifndef CONFIG_GNRC_GOMACH_MAX_ALLOC_SENDER_NUM
310#define CONFIG_GNRC_GOMACH_MAX_ALLOC_SENDER_NUM (11U)
324#ifndef CONFIG_GNRC_GOMACH_REPHASELOCK_THRESHOLD
325#define CONFIG_GNRC_GOMACH_REPHASELOCK_THRESHOLD (4U)
336#ifndef CONFIG_GNRC_GOMACH_T2U_RETYR_THRESHOLD
337#define CONFIG_GNRC_GOMACH_T2U_RETYR_THRESHOLD (2U)
350#ifndef CONFIG_GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD
351#define CONFIG_GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD (10U)
371 char priority,
const char *name,
netdev_t *dev);
Definition for GNRC's network interfaces.
int gnrc_netif_gomach_create(gnrc_netif_t *netif, char *stack, int stacksize, char priority, const char *name, netdev_t *dev)
Creates an IEEE 802.15.4 GoMacH network interface.
Low-level RTT (Real Time Timer) peripheral driver interface definitions.
Representation of a network interface.
Structure to hold driver state.