Go to the documentation of this file.
25 #ifndef NET_CSMA_SENDER_H
26 #define NET_CSMA_SENDER_H
45 #ifndef CONFIG_CSMA_SENDER_MIN_BE_DEFAULT
46 #define CONFIG_CSMA_SENDER_MIN_BE_DEFAULT (3U)
52 #ifndef CONFIG_CSMA_SENDER_MAX_BE_DEFAULT
53 #define CONFIG_CSMA_SENDER_MAX_BE_DEFAULT (5U)
60 #ifndef CONFIG_CSMA_SENDER_MAX_BACKOFFS_DEFAULT
61 #define CONFIG_CSMA_SENDER_MAX_BACKOFFS_DEFAULT (4U)
67 #ifndef CONFIG_CSMA_SENDER_BACKOFF_PERIOD_UNIT
68 #define CONFIG_CSMA_SENDER_BACKOFF_PERIOD_UNIT (320U)
uint8_t max_be
maximum backoff exponent
uint32_t backoff_period
backoff period in microseconds
Definitions low-level network driver interface.
Configuration type for backoff.
iolist structure definition
int csma_sender_csma_ca_send(netdev_t *dev, iolist_t *iolist, const csma_sender_conf_t *conf)
Sends a 802.15.4 frame using the CSMA/CA method.
int csma_sender_cca_send(netdev_t *dev, iolist_t *iolist)
Sends a 802.15.4 frame when medium is available.
Structure to hold driver state.
uint8_t min_be
minimum backoff exponent
const csma_sender_conf_t CSMA_SENDER_CONF_DEFAULT
Default configuration.
uint16_t max_backoffs
maximum number of retries