netif/mac.h¶
Common MAC module definitions for Network interface API
-
GNRC_NETIF_MAC_INFO_TX_FEEDBACK_MASK
¶ Mask for
sys/include/net/gnrc/mac/types.h::gnrc_mac_tx_feedback_t
.1
(0x0003U)
-
GNRC_NETIF_MAC_INFO_RX_STARTED
¶ Flag to track if a transmission might have corrupted a received packet.
1
(0x0004U)
-
GNRC_NETIF_MAC_INFO_CSMA_ENABLED
¶ Flag to track if a device has enabled CSMA for transmissions.
1
(0x0100U)
In case the device doesn’t support on-chip CSMA and this flag is set for requiring CSMA transmission, then, the device will run software CSMA using
csma_sender
APIs.
-
struct
gnrc_netif_mac_t
¶ Common MAC module component of gnrc_netif_mac_t
-
uint16_t
mac_info
¶ general information for the MAC protocol
-
csma_sender_conf_t
csma_conf
¶ device’s software CSMA configuration
-
gnrc_mac_rx_t
rx
¶ MAC internal object which stores reception parameters, queues, and state machines.
Note
Only available if
mac/mac.h::GNRC_MAC_RX_QUEUE_SIZE
ormac/mac.h::GNRC_MAC_DISPATCH_BUFFER_SIZE
is greater than 0.
-
gnrc_mac_tx_t
tx
¶ MAC internal object which stores transmission parameters, queues, and state machines.
Note
Only available if
mac/mac.h::GNRC_MAC_TX_QUEUE_SIZE
ormac/mac.h::GNRC_MAC_NEIGHBOR_COUNT
is greater than 0.
-
uint16_t