$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tu-darmstadt-ros-pkg/doc_stacks/2013-03-05_12-22-58.304137/ublox/ublox_msgs/msg/CfgPRT.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_CFGPRT_H 00003 #define UBLOX_MSGS_MESSAGE_CFGPRT_H 00004 #include <string> 00005 #include <vector> 00006 #include <map> 00007 #include <ostream> 00008 #include "ros/serialization.h" 00009 #include "ros/builtin_message_traits.h" 00010 #include "ros/message_operations.h" 00011 #include "ros/time.h" 00012 00013 #include "ros/macros.h" 00014 00015 #include "ros/assert.h" 00016 00017 00018 namespace ublox_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct CfgPRT_ { 00022 typedef CfgPRT_<ContainerAllocator> Type; 00023 00024 CfgPRT_() 00025 : portID(0) 00026 , reserved0(0) 00027 , txReady(0) 00028 , mode(0) 00029 , baudRate(0) 00030 , inProtoMask(0) 00031 , outProtoMask(0) 00032 , reserved4(0) 00033 , reserved5(0) 00034 { 00035 } 00036 00037 CfgPRT_(const ContainerAllocator& _alloc) 00038 : portID(0) 00039 , reserved0(0) 00040 , txReady(0) 00041 , mode(0) 00042 , baudRate(0) 00043 , inProtoMask(0) 00044 , outProtoMask(0) 00045 , reserved4(0) 00046 , reserved5(0) 00047 { 00048 } 00049 00050 typedef uint8_t _portID_type; 00051 uint8_t portID; 00052 00053 typedef uint8_t _reserved0_type; 00054 uint8_t reserved0; 00055 00056 typedef uint16_t _txReady_type; 00057 uint16_t txReady; 00058 00059 typedef uint32_t _mode_type; 00060 uint32_t mode; 00061 00062 typedef uint32_t _baudRate_type; 00063 uint32_t baudRate; 00064 00065 typedef uint16_t _inProtoMask_type; 00066 uint16_t inProtoMask; 00067 00068 typedef uint16_t _outProtoMask_type; 00069 uint16_t outProtoMask; 00070 00071 typedef uint16_t _reserved4_type; 00072 uint16_t reserved4; 00073 00074 typedef uint16_t _reserved5_type; 00075 uint16_t reserved5; 00076 00077 enum { CLASS_ID = 6 }; 00078 enum { MESSAGE_ID = 0 }; 00079 enum { PORT_ID_UART1 = 1 }; 00080 enum { PORT_ID_UART2 = 2 }; 00081 enum { PORT_ID_USB = 3 }; 00082 enum { TX_READY_EN = 1 }; 00083 enum { TX_READY_POLARITY_HIGH_ACTIVE = 0 }; 00084 enum { TX_READY_POLARITY_LOW_ACTIVE = 2 }; 00085 enum { TX_READY_PIN_SHIFT = 2 }; 00086 enum { TX_READY_PIN_MASK = 124 }; 00087 enum { TX_READY_THRES_SHIFT = 7 }; 00088 enum { TX_READY_THRES_MASK = 65408 }; 00089 enum { MODE_RESERVED1 = 16 }; 00090 enum { MODE_CHAR_LEN_MASK = 192 }; 00091 enum { MODE_CHAR_LEN_5BIT = 0 }; 00092 enum { MODE_CHAR_LEN_6BIT = 64 }; 00093 enum { MODE_CHAR_LEN_7BIT = 128 }; 00094 enum { MODE_CHAR_LEN_8BIT = 192 }; 00095 enum { MODE_PARITY_MASK = 3584 }; 00096 enum { MODE_PARITY_EVEN = 0 }; 00097 enum { MODE_PARITY_ODD = 512 }; 00098 enum { MODE_PARITY_NO = 2048 }; 00099 enum { MODE_STOP_BITS_MASK = 12288 }; 00100 enum { MODE_STOP_BITS_1 = 0 }; 00101 enum { MODE_STOP_BITS_15 = 4096 }; 00102 enum { MODE_STOP_BITS_2 = 8192 }; 00103 enum { MODE_STOP_BITS_05 = 12288 }; 00104 enum { PROTO_UBX = 1 }; 00105 enum { PROTO_NMEA = 2 }; 00106 enum { PROTO_RTCM = 4 }; 00107 00108 private: 00109 static const char* __s_getDataType_() { return "ublox_msgs/CfgPRT"; } 00110 public: 00111 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00112 00113 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00114 00115 private: 00116 static const char* __s_getMD5Sum_() { return "3679d3ad278d5329fb8543226a55acca"; } 00117 public: 00118 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00119 00120 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00121 00122 private: 00123 static const char* __s_getMessageDefinition_() { return "# CFG-PRT (0x06 0x00)\n\ 00124 # Port Configuration for UART\n\ 00125 #\n\ 00126 # Several configurations can be concatenated to one input message. In this case the payload\n\ 00127 # length can be a multiple of the normal length (see the other versions of CFG-PRT). Output\n\ 00128 # messages from the module contain only one configuration unit.\n\ 00129 #\n\ 00130 \n\ 00131 uint8 CLASS_ID = 6\n\ 00132 uint8 MESSAGE_ID = 0\n\ 00133 \n\ 00134 uint8 portID # Port Identifier Number (= 1 or 2 for UART ports)\n\ 00135 uint8 PORT_ID_UART1 = 1\n\ 00136 uint8 PORT_ID_UART2 = 2\n\ 00137 uint8 PORT_ID_USB = 3\n\ 00138 \n\ 00139 uint8 reserved0 # Reserved\n\ 00140 \n\ 00141 uint16 txReady # reserved (Alwyas set to zero) up to Firmware 7.01,\n\ 00142 # TX ready PIN configuration (since Firmware 7.01)\n\ 00143 uint16 TX_READY_EN = 1 # Enable TX ready feature for this port\n\ 00144 uint16 TX_READY_POLARITY_HIGH_ACTIVE = 0 # Polarity High-active\n\ 00145 uint16 TX_READY_POLARITY_LOW_ACTIVE = 2 # Polarity Low-active\n\ 00146 uint16 TX_READY_PIN_SHIFT = 2 # PIO to be used (must not be in use already by another function)\n\ 00147 uint16 TX_READY_PIN_MASK = 124 #\n\ 00148 uint16 TX_READY_THRES_SHIFT = 7 # Threshold\n\ 00149 uint16 TX_READY_THRES_MASK = 65408 # The given threshold is multiplied by 8 bytes.\n\ 00150 # The TX ready PIN goes active after >= thres*8 bytes are pending for the port and going inactive after the last\n\ 00151 # pending bytes have been written to hardware (0-4 bytes before end of stream).\n\ 00152 \n\ 00153 uint32 mode # A bit mask describing the UART mode\n\ 00154 uint32 MODE_RESERVED1 = 16 # Default 1 for compatibility with A4\n\ 00155 uint32 MODE_CHAR_LEN_MASK = 192 # Character Length\n\ 00156 uint32 MODE_CHAR_LEN_5BIT = 0 # 5bit (not supported)\n\ 00157 uint32 MODE_CHAR_LEN_6BIT = 64 # 6bit (not supported)\n\ 00158 uint32 MODE_CHAR_LEN_7BIT = 128 # 7bit (supported only with parity)\n\ 00159 uint32 MODE_CHAR_LEN_8BIT = 192 # 8bit\n\ 00160 uint32 MODE_PARITY_MASK = 3584 #\n\ 00161 uint32 MODE_PARITY_EVEN = 0 # Even Parity\n\ 00162 uint32 MODE_PARITY_ODD = 512 # Odd Parity\n\ 00163 uint32 MODE_PARITY_NO = 2048 # No Parity\n\ 00164 uint32 MODE_STOP_BITS_MASK = 12288 # Number of Stop Bits\n\ 00165 uint32 MODE_STOP_BITS_1 = 0 # 1 Stop Bit\n\ 00166 uint32 MODE_STOP_BITS_15 = 4096 # 1.5 Stop Bit\n\ 00167 uint32 MODE_STOP_BITS_2 = 8192 # 2 Stop Bit\n\ 00168 uint32 MODE_STOP_BITS_05 = 12288 # 0.5 Stop Bit\n\ 00169 \n\ 00170 uint32 baudRate # Baudrate in bits/second [bits/s]\n\ 00171 \n\ 00172 uint16 inProtoMask # A mask describing which input protocols are active.\n\ 00173 # Each bit of this mask is used for a protocol.\n\ 00174 # Through that, multiple protocols can be defined\n\ 00175 # on a single port.\n\ 00176 \n\ 00177 uint16 outProtoMask # A mask describing which output protocols are active.\n\ 00178 # Each bit of this mask is used for a protocol.\n\ 00179 # Through that, multiple protocols can be defined\n\ 00180 # on a single port.\n\ 00181 \n\ 00182 uint16 PROTO_UBX = 1\n\ 00183 uint16 PROTO_NMEA = 2\n\ 00184 uint16 PROTO_RTCM = 4\n\ 00185 \n\ 00186 uint16 reserved4 # Always set to zero\n\ 00187 uint16 reserved5 # Always set to zero\n\ 00188 \n\ 00189 "; } 00190 public: 00191 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00192 00193 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00194 00195 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00196 { 00197 ros::serialization::OStream stream(write_ptr, 1000000000); 00198 ros::serialization::serialize(stream, portID); 00199 ros::serialization::serialize(stream, reserved0); 00200 ros::serialization::serialize(stream, txReady); 00201 ros::serialization::serialize(stream, mode); 00202 ros::serialization::serialize(stream, baudRate); 00203 ros::serialization::serialize(stream, inProtoMask); 00204 ros::serialization::serialize(stream, outProtoMask); 00205 ros::serialization::serialize(stream, reserved4); 00206 ros::serialization::serialize(stream, reserved5); 00207 return stream.getData(); 00208 } 00209 00210 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00211 { 00212 ros::serialization::IStream stream(read_ptr, 1000000000); 00213 ros::serialization::deserialize(stream, portID); 00214 ros::serialization::deserialize(stream, reserved0); 00215 ros::serialization::deserialize(stream, txReady); 00216 ros::serialization::deserialize(stream, mode); 00217 ros::serialization::deserialize(stream, baudRate); 00218 ros::serialization::deserialize(stream, inProtoMask); 00219 ros::serialization::deserialize(stream, outProtoMask); 00220 ros::serialization::deserialize(stream, reserved4); 00221 ros::serialization::deserialize(stream, reserved5); 00222 return stream.getData(); 00223 } 00224 00225 ROS_DEPRECATED virtual uint32_t serializationLength() const 00226 { 00227 uint32_t size = 0; 00228 size += ros::serialization::serializationLength(portID); 00229 size += ros::serialization::serializationLength(reserved0); 00230 size += ros::serialization::serializationLength(txReady); 00231 size += ros::serialization::serializationLength(mode); 00232 size += ros::serialization::serializationLength(baudRate); 00233 size += ros::serialization::serializationLength(inProtoMask); 00234 size += ros::serialization::serializationLength(outProtoMask); 00235 size += ros::serialization::serializationLength(reserved4); 00236 size += ros::serialization::serializationLength(reserved5); 00237 return size; 00238 } 00239 00240 typedef boost::shared_ptr< ::ublox_msgs::CfgPRT_<ContainerAllocator> > Ptr; 00241 typedef boost::shared_ptr< ::ublox_msgs::CfgPRT_<ContainerAllocator> const> ConstPtr; 00242 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00243 }; // struct CfgPRT 00244 typedef ::ublox_msgs::CfgPRT_<std::allocator<void> > CfgPRT; 00245 00246 typedef boost::shared_ptr< ::ublox_msgs::CfgPRT> CfgPRTPtr; 00247 typedef boost::shared_ptr< ::ublox_msgs::CfgPRT const> CfgPRTConstPtr; 00248 00249 00250 template<typename ContainerAllocator> 00251 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::CfgPRT_<ContainerAllocator> & v) 00252 { 00253 ros::message_operations::Printer< ::ublox_msgs::CfgPRT_<ContainerAllocator> >::stream(s, "", v); 00254 return s;} 00255 00256 } // namespace ublox_msgs 00257 00258 namespace ros 00259 { 00260 namespace message_traits 00261 { 00262 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgPRT_<ContainerAllocator> > : public TrueType {}; 00263 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgPRT_<ContainerAllocator> const> : public TrueType {}; 00264 template<class ContainerAllocator> 00265 struct MD5Sum< ::ublox_msgs::CfgPRT_<ContainerAllocator> > { 00266 static const char* value() 00267 { 00268 return "3679d3ad278d5329fb8543226a55acca"; 00269 } 00270 00271 static const char* value(const ::ublox_msgs::CfgPRT_<ContainerAllocator> &) { return value(); } 00272 static const uint64_t static_value1 = 0x3679d3ad278d5329ULL; 00273 static const uint64_t static_value2 = 0xfb8543226a55accaULL; 00274 }; 00275 00276 template<class ContainerAllocator> 00277 struct DataType< ::ublox_msgs::CfgPRT_<ContainerAllocator> > { 00278 static const char* value() 00279 { 00280 return "ublox_msgs/CfgPRT"; 00281 } 00282 00283 static const char* value(const ::ublox_msgs::CfgPRT_<ContainerAllocator> &) { return value(); } 00284 }; 00285 00286 template<class ContainerAllocator> 00287 struct Definition< ::ublox_msgs::CfgPRT_<ContainerAllocator> > { 00288 static const char* value() 00289 { 00290 return "# CFG-PRT (0x06 0x00)\n\ 00291 # Port Configuration for UART\n\ 00292 #\n\ 00293 # Several configurations can be concatenated to one input message. In this case the payload\n\ 00294 # length can be a multiple of the normal length (see the other versions of CFG-PRT). Output\n\ 00295 # messages from the module contain only one configuration unit.\n\ 00296 #\n\ 00297 \n\ 00298 uint8 CLASS_ID = 6\n\ 00299 uint8 MESSAGE_ID = 0\n\ 00300 \n\ 00301 uint8 portID # Port Identifier Number (= 1 or 2 for UART ports)\n\ 00302 uint8 PORT_ID_UART1 = 1\n\ 00303 uint8 PORT_ID_UART2 = 2\n\ 00304 uint8 PORT_ID_USB = 3\n\ 00305 \n\ 00306 uint8 reserved0 # Reserved\n\ 00307 \n\ 00308 uint16 txReady # reserved (Alwyas set to zero) up to Firmware 7.01,\n\ 00309 # TX ready PIN configuration (since Firmware 7.01)\n\ 00310 uint16 TX_READY_EN = 1 # Enable TX ready feature for this port\n\ 00311 uint16 TX_READY_POLARITY_HIGH_ACTIVE = 0 # Polarity High-active\n\ 00312 uint16 TX_READY_POLARITY_LOW_ACTIVE = 2 # Polarity Low-active\n\ 00313 uint16 TX_READY_PIN_SHIFT = 2 # PIO to be used (must not be in use already by another function)\n\ 00314 uint16 TX_READY_PIN_MASK = 124 #\n\ 00315 uint16 TX_READY_THRES_SHIFT = 7 # Threshold\n\ 00316 uint16 TX_READY_THRES_MASK = 65408 # The given threshold is multiplied by 8 bytes.\n\ 00317 # The TX ready PIN goes active after >= thres*8 bytes are pending for the port and going inactive after the last\n\ 00318 # pending bytes have been written to hardware (0-4 bytes before end of stream).\n\ 00319 \n\ 00320 uint32 mode # A bit mask describing the UART mode\n\ 00321 uint32 MODE_RESERVED1 = 16 # Default 1 for compatibility with A4\n\ 00322 uint32 MODE_CHAR_LEN_MASK = 192 # Character Length\n\ 00323 uint32 MODE_CHAR_LEN_5BIT = 0 # 5bit (not supported)\n\ 00324 uint32 MODE_CHAR_LEN_6BIT = 64 # 6bit (not supported)\n\ 00325 uint32 MODE_CHAR_LEN_7BIT = 128 # 7bit (supported only with parity)\n\ 00326 uint32 MODE_CHAR_LEN_8BIT = 192 # 8bit\n\ 00327 uint32 MODE_PARITY_MASK = 3584 #\n\ 00328 uint32 MODE_PARITY_EVEN = 0 # Even Parity\n\ 00329 uint32 MODE_PARITY_ODD = 512 # Odd Parity\n\ 00330 uint32 MODE_PARITY_NO = 2048 # No Parity\n\ 00331 uint32 MODE_STOP_BITS_MASK = 12288 # Number of Stop Bits\n\ 00332 uint32 MODE_STOP_BITS_1 = 0 # 1 Stop Bit\n\ 00333 uint32 MODE_STOP_BITS_15 = 4096 # 1.5 Stop Bit\n\ 00334 uint32 MODE_STOP_BITS_2 = 8192 # 2 Stop Bit\n\ 00335 uint32 MODE_STOP_BITS_05 = 12288 # 0.5 Stop Bit\n\ 00336 \n\ 00337 uint32 baudRate # Baudrate in bits/second [bits/s]\n\ 00338 \n\ 00339 uint16 inProtoMask # A mask describing which input protocols are active.\n\ 00340 # Each bit of this mask is used for a protocol.\n\ 00341 # Through that, multiple protocols can be defined\n\ 00342 # on a single port.\n\ 00343 \n\ 00344 uint16 outProtoMask # A mask describing which output protocols are active.\n\ 00345 # Each bit of this mask is used for a protocol.\n\ 00346 # Through that, multiple protocols can be defined\n\ 00347 # on a single port.\n\ 00348 \n\ 00349 uint16 PROTO_UBX = 1\n\ 00350 uint16 PROTO_NMEA = 2\n\ 00351 uint16 PROTO_RTCM = 4\n\ 00352 \n\ 00353 uint16 reserved4 # Always set to zero\n\ 00354 uint16 reserved5 # Always set to zero\n\ 00355 \n\ 00356 "; 00357 } 00358 00359 static const char* value(const ::ublox_msgs::CfgPRT_<ContainerAllocator> &) { return value(); } 00360 }; 00361 00362 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::CfgPRT_<ContainerAllocator> > : public TrueType {}; 00363 } // namespace message_traits 00364 } // namespace ros 00365 00366 namespace ros 00367 { 00368 namespace serialization 00369 { 00370 00371 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::CfgPRT_<ContainerAllocator> > 00372 { 00373 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00374 { 00375 stream.next(m.portID); 00376 stream.next(m.reserved0); 00377 stream.next(m.txReady); 00378 stream.next(m.mode); 00379 stream.next(m.baudRate); 00380 stream.next(m.inProtoMask); 00381 stream.next(m.outProtoMask); 00382 stream.next(m.reserved4); 00383 stream.next(m.reserved5); 00384 } 00385 00386 ROS_DECLARE_ALLINONE_SERIALIZER; 00387 }; // struct CfgPRT_ 00388 } // namespace serialization 00389 } // namespace ros 00390 00391 namespace ros 00392 { 00393 namespace message_operations 00394 { 00395 00396 template<class ContainerAllocator> 00397 struct Printer< ::ublox_msgs::CfgPRT_<ContainerAllocator> > 00398 { 00399 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::CfgPRT_<ContainerAllocator> & v) 00400 { 00401 s << indent << "portID: "; 00402 Printer<uint8_t>::stream(s, indent + " ", v.portID); 00403 s << indent << "reserved0: "; 00404 Printer<uint8_t>::stream(s, indent + " ", v.reserved0); 00405 s << indent << "txReady: "; 00406 Printer<uint16_t>::stream(s, indent + " ", v.txReady); 00407 s << indent << "mode: "; 00408 Printer<uint32_t>::stream(s, indent + " ", v.mode); 00409 s << indent << "baudRate: "; 00410 Printer<uint32_t>::stream(s, indent + " ", v.baudRate); 00411 s << indent << "inProtoMask: "; 00412 Printer<uint16_t>::stream(s, indent + " ", v.inProtoMask); 00413 s << indent << "outProtoMask: "; 00414 Printer<uint16_t>::stream(s, indent + " ", v.outProtoMask); 00415 s << indent << "reserved4: "; 00416 Printer<uint16_t>::stream(s, indent + " ", v.reserved4); 00417 s << indent << "reserved5: "; 00418 Printer<uint16_t>::stream(s, indent + " ", v.reserved5); 00419 } 00420 }; 00421 00422 00423 } // namespace message_operations 00424 } // namespace ros 00425 00426 #endif // UBLOX_MSGS_MESSAGE_CFGPRT_H 00427