Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
925013cd
You need to sign in or sign up before continuing.
Commit
925013cd
authored
8 years ago
by
Martine Lenders
Browse files
Options
Downloads
Patches
Plain Diff
csma_sender: doc fixes
parent
26acd3b7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sys/include/net/gnrc/csma_sender.h
+10
-7
10 additions, 7 deletions
sys/include/net/gnrc/csma_sender.h
sys/net/gnrc/link_layer/csma_sender/gnrc_csma_sender.c
+4
-3
4 additions, 3 deletions
sys/net/gnrc/link_layer/csma_sender/gnrc_csma_sender.c
with
14 additions
and
10 deletions
sys/include/net/gnrc/csma_sender.h
+
10
−
7
View file @
925013cd
...
...
@@ -7,7 +7,7 @@
*/
/**
* @defgroup net_gnrc_csma_sender
Helper interface to send packets via
CSMA/CA
* @defgroup net_gnrc_csma_sender CSMA/CA
helper
* @ingroup net_gnrc
* @brief This interface allows code from layer 2 (MAC) or higher
* to send packets with CSMA/CA, whatever the abilities and/or
...
...
@@ -103,12 +103,15 @@ int csma_sender_csma_ca_send(gnrc_netdev_t *dev, gnrc_pktsnip_t *pkt);
* @brief Sends a 802.15.4 frame when medium is avaiable.
*
* This function is useful for sending packets without the whole CSMA/CA
* procedure, but *after* ensuring medium is available, that is :
* after a successful CCA. <br/>
* It is especially useful for broadcasting specific packets,
* like beacons; or for many sending packets in burst. <br/>
* ATTENTION: It only tries to send the given data once. If you want the
* complete CSMA/CA procedure with retries, use @c csma_sender_csma_ca_send().
* procedure, but *after* ensuring medium is available, that is after a
* successful CCA.
*
* It is especially useful for broadcasting specific packets, like beacons; or
* for many sending packets in burst.
*
* @warning **ATTENTION:** It only tries to send the given data once. If you
* want the complete CSMA/CA procedure with retries, use
* @ref csma_sender_csma_ca_send().
*
* @param[in] dev netdev device, needs to be already initialized
* @param[in] pkt pointer to the data in the packet buffer;
...
...
This diff is collapsed.
Click to expand it.
sys/net/gnrc/link_layer/csma_sender/gnrc_csma_sender.c
+
4
−
3
View file @
925013cd
...
...
@@ -81,9 +81,10 @@ static inline uint32_t choose_backoff_period(int be)
* it must be a complete 802.15.4-compliant frame,
* ready to be sent to the radio transceiver
*
* @return the return value of device driver's @c send_data()
* function if medium was avilable
* @return -ECANCELED if an internal driver error occured
* @return the return value of device driver's
* gnrc_netdev_driver_t::send_data()
* function if medium was available
* @return -ECANCELED if an internal driver error occurred
* @return -EBUSY if radio medium was not available
* to send the given data
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment