Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
89b2fa2b
Commit
89b2fa2b
authored
7 years ago
by
Beat Küng
Browse files
Options
Downloads
Patches
Plain Diff
microRTPS_transport.h: add clarifying comment for Transport_node::write()
parent
13a3791c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
msg/templates/urtps/microRTPS_transport.h
+15
-1
15 additions, 1 deletion
msg/templates/urtps/microRTPS_transport.h
with
15 additions
and
1 deletion
msg/templates/urtps/microRTPS_transport.h
+
15
−
1
View file @
89b2fa2b
...
...
@@ -45,8 +45,22 @@ public:
virtual
int
init
()
{
return
0
;}
virtual
uint8_t
close
()
{
return
0
;}
ssize_t
read
(
uint8_t
*
topic_ID
,
char
out_buffer
[],
size_t
buffer_len
);
/**
* write a buffer
* @param topic_ID
* @param buffer buffer to write: it must leave get_header_length() bytes free at the beginning. This will be
* filled with the header. length does not include get_header_length(). So buffer looks like this:
* -------------------------------------------------
* | header (leave free) | payload data |
* | get_header_length() bytes | length bytes |
* -------------------------------------------------
* @param length buffer length excluding header length
* @return length on success, <0 on error
*/
ssize_t
write
(
const
uint8_t
topic_ID
,
char
buffer
[],
size_t
length
);
/* Get the Length of struct Header to make headroom for the size of struct Header alongwith payload*/
/** Get the Length of struct Header to make headroom for the size of struct Header along with payload */
ssize_t
get_header_length
();
protected
:
...
...
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