ROS Serial C client library
rosPacket Struct Reference

Structure to hold serialized messages. More...

#include <ros_types.h>

Data Fields

union {
   uint8_t   sync_flag_ [2]
   uint16_t   sync_flag
}; 
union {
   uint8_t   topic_id_ [2]
   uint16_t   topic_id
}; 
union {
   uint8_t   message_length_ [2]
   uint16_t   message_length
}; 
uint8_t * buffer
uint16_t buffer_size
uint8_t checksum

Detailed Description

Structure to hold serialized messages.


Field Documentation

uint8_t* buffer

pointer to packets serialized message data

uint16_t buffer_size

pointer to packets serialized message data

uint8_t checksum

packet checksum

uint16_t message_length

message length

uint8_t message_length_[2]

array used to store message length

uint16_t sync_flag

sync flag

uint8_t sync_flag_[2]

array used to store sync flag

uint16_t topic_id

topic id

uint8_t topic_id_[2]

array used to store topic id


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines