sys/include/net/gnrc/mac/types.h¶
Internal data types used by GNRC_MAC.
-
GNRC_MAC_TYPE_GET_DUTYCYCLE
¶ MAC message type for getting radio’s duty-cycle.
1
(0x4401)
-
GNRC_MAC_TX_FEEDBACK_INIT
¶ Static initializer for gnrc_mac_tx_feedback_t.
1
{ TX_FEEDBACK_UNDEF }
-
GNRC_MAC_RX_INIT
¶ Static initializer for gnrc_mac_rx_t.
1 2 3 4 5
{ \ PRIORITY_PKTQUEUE_INIT, \ { PRIORITY_PKTQUEUE_NODE_INIT(0, NULL) }, \ { NULL }, \ }
-
GNRC_MAC_PHASE_UNINITIALIZED
¶ Uninitialized phase value.
1
(0)
-
GNRC_MAC_PHASE_MAX
¶ Maximum phase value.
1
(-1)
-
GNRC_MAC_TX_NEIGHBOR_INIT
¶ Static initializer for gnrc_mac_tx_neighbor_t.
1 2 3 4 5 6
{ \ { 0 }, \ 0, \ GNRC_MAC_PHASE_UNINITIALIZED, \ PRIORITY_PKTQUEUE_INIT, \ }
-
GNRC_MAC_TX_INIT
¶ Static initializer for gnrc_mac_tx_t.
1 2 3 4 5 6
{ \ { GNRC_MAC_TX_NEIGHBOR_INIT }, \ NULL, \ { PRIORITY_PKTQUEUE_NODE_INIT(0, NULL) }, \ NULL, \ }
-
enum
gnrc_mac_tx_feedback_t
¶ - TX_FEEDBACK_UNDEF
= 0
- Transmission just start, no Tx feedback yet.
- TX_FEEDBACK_SUCCESS
- Transmission succeeded.
- TX_FEEDBACK_NOACK
- No ACK for the transmitted packet.
- TX_FEEDBACK_BUSY
- found medium busy when doing transmission
- TX_FEEDBACK_UNDEF
-
struct
gnrc_mac_rx_t
¶ MAC internal type for storing reception state parameters and state machines.
This structure can be extended to contain more needed states and parameters. Please guard them by appropriate #ifdef directives when applicable.
-
priority_pktqueue.h::gnrc_priority_pktqueue_t
queue
¶ RX packet queue.
-
include/net/gnrc/pkt.h::gnrc_pktsnip_t
*dispatch_buffer
()¶ dispatch packet buffer
-
-
struct
gnrc_mac_tx_neighbor_t
¶ type for storing states of TX neighbor node.
-
uint8_t
l2_addr
()¶ Address of neighbor node.
-
uint8_t
l2_addr_len
¶ Neighbor address length.
-
uint32_t
phase
¶ Neighbor’s wake-up Phase.
-
priority_pktqueue.h::gnrc_priority_pktqueue_t
queue
¶ TX queue for this particular Neighbor.
-
uint8_t
-
struct
gnrc_mac_tx_t
¶ MAC internal type for storing transmission state parameters and state machines.
This structure can be extended to contain more needed states and parameters. Please guard them by appropriate #ifdef directives when applicable.
-
gnrc_mac_tx_neighbor_t
neighbors
()¶ Neighbor information units for one-hop neighbors.
First unit is for broadcast (+1)
-
gnrc_mac_tx_neighbor_t *
current_neighbor
¶ Neighbor information unit of destination node to which the current packet will be sent.
-
priority_pktqueue.h::gnrc_priority_pktqueue_t
queue
¶ If neighbor queues is not used, define a single queue for managing TX packets.
-
include/net/gnrc/pkt.h::gnrc_pktsnip_t
*packet
¶ currently scheduled packet for sending
-
gnrc_mac_tx_neighbor_t