Loading...
Searching...
No Matches
sfr_types.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include <stdint.h>
19
20#include "bitfield.h"
21#include "clist.h"
22#include "congure.h"
23#include "evtimer_msg.h"
24#include "modules.h"
25#include "msg.h"
26#include "xtimer.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
35typedef union {
36 uint32_t u32;
37 BITFIELD(bf, 32U);
39
45#if IS_USED(MODULE_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE) || DOXYGEN
47#endif
52 uint32_t arq_timeout;
54 uint8_t cur_seq;
55 uint8_t frags_sent;
56 uint8_t retrans;
59
60#ifdef __cplusplus
61}
62#endif
63
Bitfield operations on bitfields of arbitrary length.
Circular linked list.
list_node_t clist_node_t
List node structure.
Definition clist.h:104
IPC-based evtimer definitions.
struct gnrc_sixlowpan_frag_sfr_fb gnrc_sixlowpan_frag_sfr_fb_t
Extension for 6LoWPAN fragmentation buffer for selective fragment recovery.
Common macros and compiler attributes/pragmas configuration.
Base state object for CongURE implementations.
Definition congure.h:48
IPC-message event.
Definition evtimer_msg.h:37
Extension for 6LoWPAN fragmentation buffer for selective fragment recovery.
Definition sfr_types.h:44
uint8_t frags_sent
Number of fragments sent.
Definition sfr_types.h:55
uint32_t arq_timeout
Time in microseconds the sender should wait for an RFRAG Acknowledgment.
Definition sfr_types.h:52
congure_snd_t * congure
state object for CongURE
Definition sfr_types.h:46
uint8_t retrans
Datagram retransmissions.
Definition sfr_types.h:56
evtimer_msg_event_t arq_timeout_event
Acknowledgment request timeout event.
Definition sfr_types.h:51
clist_node_t window
Sent fragments of the current window.
Definition sfr_types.h:57
uint8_t cur_seq
Sequence number for next fragment.
Definition sfr_types.h:54
Bitmap type to simplify comparisons.
Definition sfr_types.h:35
uint32_t u32
numerical version of bitmap
Definition sfr_types.h:36
BITFIELD(bf, 32U)
bitfield version of bitmap
xtimer interface definitions