25#ifndef NET_CSMA_SENDER_H
26#define NET_CSMA_SENDER_H
44#ifndef CONFIG_CSMA_SENDER_MIN_BE_DEFAULT
45#define CONFIG_CSMA_SENDER_MIN_BE_DEFAULT (3U)
51#ifndef CONFIG_CSMA_SENDER_MAX_BE_DEFAULT
52#define CONFIG_CSMA_SENDER_MAX_BE_DEFAULT (5U)
59#ifndef CONFIG_CSMA_SENDER_MAX_BACKOFFS_DEFAULT
60#define CONFIG_CSMA_SENDER_MAX_BACKOFFS_DEFAULT (4U)
66#ifndef CONFIG_CSMA_SENDER_BACKOFF_PERIOD_UNIT
67#define CONFIG_CSMA_SENDER_BACKOFF_PERIOD_UNIT (320U)
Definitions low-level network driver interface.
int csma_sender_cca_send(netdev_t *dev, iolist_t *iolist)
Sends a 802.15.4 frame when medium is available.
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.
const csma_sender_conf_t CSMA_SENDER_CONF_DEFAULT
Default configuration.
Configuration type for backoff.
uint16_t max_backoffs
maximum number of retries
uint8_t min_be
minimum backoff exponent
uint8_t max_be
maximum backoff exponent
uint32_t backoff_period
backoff period in microseconds
iolist structure definition
Structure to hold driver state.