Loading...
Searching...
No Matches
csma_sender.h File Reference

Interface definition for the CSMA/CA helper. More...

Detailed Description

Interface definition for the CSMA/CA helper.

Author
Kévin Roussel Kevin.nosp@m..Rou.nosp@m.ssel@.nosp@m.inri.nosp@m.a.fr
Martine Lenders mlend.nosp@m.ers@.nosp@m.inf.f.nosp@m.u-be.nosp@m.rlin..nosp@m.de

Definition in file csma_sender.h.

#include <stdint.h>
#include "net/netdev.h"
+ Include dependency graph for csma_sender.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  csma_sender_conf_t
 Configuration type for backoff. More...
 

Macros

#define CONFIG_CSMA_SENDER_MIN_BE_DEFAULT   (3U)
 Default Minimal CSMA/CA Backoff Exponent.
 
#define CONFIG_CSMA_SENDER_MAX_BE_DEFAULT   (5U)
 Default Maximal CSMA/CA Backoff Exponent.
 
#define CONFIG_CSMA_SENDER_MAX_BACKOFFS_DEFAULT   (4U)
 Default Maximal number of retries for sending a given packet with the CSMA/CA method.
 
#define CONFIG_CSMA_SENDER_BACKOFF_PERIOD_UNIT   (320U)
 CSMA/CA backoff period, in microseconds.
 

Functions

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.
 

Variables

const csma_sender_conf_t CSMA_SENDER_CONF_DEFAULT
 Default configuration.