$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/CfgANT.msg */ 00002 #ifndef UBLOX_MSGS_MESSAGE_CFGANT_H 00003 #define UBLOX_MSGS_MESSAGE_CFGANT_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 CfgANT_ { 00022 typedef CfgANT_<ContainerAllocator> Type; 00023 00024 CfgANT_() 00025 : flags(0) 00026 , pins(0) 00027 { 00028 } 00029 00030 CfgANT_(const ContainerAllocator& _alloc) 00031 : flags(0) 00032 , pins(0) 00033 { 00034 } 00035 00036 typedef uint16_t _flags_type; 00037 uint16_t flags; 00038 00039 typedef uint16_t _pins_type; 00040 uint16_t pins; 00041 00042 enum { CLASS_ID = 6 }; 00043 enum { MESSAGE_ID = 19 }; 00044 enum { FLAGS_SVCS = 1 }; 00045 enum { FLAGS_SCD = 2 }; 00046 enum { FLAGS_OCD = 4 }; 00047 enum { FLAGS_PDWN_ON_SCD = 8 }; 00048 enum { FLAGS_RECOVERY = 16 }; 00049 enum { PIN_SWITCH_MASK = 31 }; 00050 enum { PIN_SCD_MASK = 992 }; 00051 enum { PIN_OCD_MASK = 31744 }; 00052 enum { PIN_RECONFIG = 16384 }; 00053 00054 private: 00055 static const char* __s_getDataType_() { return "ublox_msgs/CfgANT"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00058 00059 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00060 00061 private: 00062 static const char* __s_getMD5Sum_() { return "9e3add3a4d57d340f23eecf447a5c89e"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00065 00066 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00067 00068 private: 00069 static const char* __s_getMessageDefinition_() { return "# CFG-ANT (0x06 0x13)\n\ 00070 # Antenna Control Settings\n\ 00071 #\n\ 00072 \n\ 00073 uint8 CLASS_ID = 6\n\ 00074 uint8 MESSAGE_ID = 19\n\ 00075 \n\ 00076 uint16 flags # Antenna Flag Mask\n\ 00077 uint16 FLAGS_SVCS = 1 # Enable Antenna Supply Voltage Control Signal\n\ 00078 uint16 FLAGS_SCD = 2 # Enable Short Circuit Detection\n\ 00079 uint16 FLAGS_OCD = 4 # Enable Open Circuit Detection\n\ 00080 uint16 FLAGS_PDWN_ON_SCD = 8 # Power Down Antenna supply if Short Circuit is detected. (only in combination with Bit 1)\n\ 00081 uint16 FLAGS_RECOVERY = 16 # Enable automatic recovery from short state\n\ 00082 \n\ 00083 uint16 pins # Antenna Pin Configuration\n\ 00084 uint16 PIN_SWITCH_MASK = 31 # PIO-Pin used for switching antenna supply (internal to TIM-LP/TIM-LF)\n\ 00085 uint16 PIN_SCD_MASK = 992 # PIO-Pin used for detecting a short in the antenna supply\n\ 00086 uint16 PIN_OCD_MASK = 31744 # PIO-Pin used for detecting open/not connected antenna\n\ 00087 uint16 PIN_RECONFIG = 16384 # if set to one, and this command is sent to the receiver, the receiver will reconfigure the pins as specified.\n\ 00088 \n\ 00089 "; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00092 00093 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00094 00095 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00096 { 00097 ros::serialization::OStream stream(write_ptr, 1000000000); 00098 ros::serialization::serialize(stream, flags); 00099 ros::serialization::serialize(stream, pins); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00104 { 00105 ros::serialization::IStream stream(read_ptr, 1000000000); 00106 ros::serialization::deserialize(stream, flags); 00107 ros::serialization::deserialize(stream, pins); 00108 return stream.getData(); 00109 } 00110 00111 ROS_DEPRECATED virtual uint32_t serializationLength() const 00112 { 00113 uint32_t size = 0; 00114 size += ros::serialization::serializationLength(flags); 00115 size += ros::serialization::serializationLength(pins); 00116 return size; 00117 } 00118 00119 typedef boost::shared_ptr< ::ublox_msgs::CfgANT_<ContainerAllocator> > Ptr; 00120 typedef boost::shared_ptr< ::ublox_msgs::CfgANT_<ContainerAllocator> const> ConstPtr; 00121 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00122 }; // struct CfgANT 00123 typedef ::ublox_msgs::CfgANT_<std::allocator<void> > CfgANT; 00124 00125 typedef boost::shared_ptr< ::ublox_msgs::CfgANT> CfgANTPtr; 00126 typedef boost::shared_ptr< ::ublox_msgs::CfgANT const> CfgANTConstPtr; 00127 00128 00129 template<typename ContainerAllocator> 00130 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::CfgANT_<ContainerAllocator> & v) 00131 { 00132 ros::message_operations::Printer< ::ublox_msgs::CfgANT_<ContainerAllocator> >::stream(s, "", v); 00133 return s;} 00134 00135 } // namespace ublox_msgs 00136 00137 namespace ros 00138 { 00139 namespace message_traits 00140 { 00141 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgANT_<ContainerAllocator> > : public TrueType {}; 00142 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgANT_<ContainerAllocator> const> : public TrueType {}; 00143 template<class ContainerAllocator> 00144 struct MD5Sum< ::ublox_msgs::CfgANT_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "9e3add3a4d57d340f23eecf447a5c89e"; 00148 } 00149 00150 static const char* value(const ::ublox_msgs::CfgANT_<ContainerAllocator> &) { return value(); } 00151 static const uint64_t static_value1 = 0x9e3add3a4d57d340ULL; 00152 static const uint64_t static_value2 = 0xf23eecf447a5c89eULL; 00153 }; 00154 00155 template<class ContainerAllocator> 00156 struct DataType< ::ublox_msgs::CfgANT_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "ublox_msgs/CfgANT"; 00160 } 00161 00162 static const char* value(const ::ublox_msgs::CfgANT_<ContainerAllocator> &) { return value(); } 00163 }; 00164 00165 template<class ContainerAllocator> 00166 struct Definition< ::ublox_msgs::CfgANT_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "# CFG-ANT (0x06 0x13)\n\ 00170 # Antenna Control Settings\n\ 00171 #\n\ 00172 \n\ 00173 uint8 CLASS_ID = 6\n\ 00174 uint8 MESSAGE_ID = 19\n\ 00175 \n\ 00176 uint16 flags # Antenna Flag Mask\n\ 00177 uint16 FLAGS_SVCS = 1 # Enable Antenna Supply Voltage Control Signal\n\ 00178 uint16 FLAGS_SCD = 2 # Enable Short Circuit Detection\n\ 00179 uint16 FLAGS_OCD = 4 # Enable Open Circuit Detection\n\ 00180 uint16 FLAGS_PDWN_ON_SCD = 8 # Power Down Antenna supply if Short Circuit is detected. (only in combination with Bit 1)\n\ 00181 uint16 FLAGS_RECOVERY = 16 # Enable automatic recovery from short state\n\ 00182 \n\ 00183 uint16 pins # Antenna Pin Configuration\n\ 00184 uint16 PIN_SWITCH_MASK = 31 # PIO-Pin used for switching antenna supply (internal to TIM-LP/TIM-LF)\n\ 00185 uint16 PIN_SCD_MASK = 992 # PIO-Pin used for detecting a short in the antenna supply\n\ 00186 uint16 PIN_OCD_MASK = 31744 # PIO-Pin used for detecting open/not connected antenna\n\ 00187 uint16 PIN_RECONFIG = 16384 # if set to one, and this command is sent to the receiver, the receiver will reconfigure the pins as specified.\n\ 00188 \n\ 00189 "; 00190 } 00191 00192 static const char* value(const ::ublox_msgs::CfgANT_<ContainerAllocator> &) { return value(); } 00193 }; 00194 00195 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::CfgANT_<ContainerAllocator> > : public TrueType {}; 00196 } // namespace message_traits 00197 } // namespace ros 00198 00199 namespace ros 00200 { 00201 namespace serialization 00202 { 00203 00204 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::CfgANT_<ContainerAllocator> > 00205 { 00206 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00207 { 00208 stream.next(m.flags); 00209 stream.next(m.pins); 00210 } 00211 00212 ROS_DECLARE_ALLINONE_SERIALIZER; 00213 }; // struct CfgANT_ 00214 } // namespace serialization 00215 } // namespace ros 00216 00217 namespace ros 00218 { 00219 namespace message_operations 00220 { 00221 00222 template<class ContainerAllocator> 00223 struct Printer< ::ublox_msgs::CfgANT_<ContainerAllocator> > 00224 { 00225 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::CfgANT_<ContainerAllocator> & v) 00226 { 00227 s << indent << "flags: "; 00228 Printer<uint16_t>::stream(s, indent + " ", v.flags); 00229 s << indent << "pins: "; 00230 Printer<uint16_t>::stream(s, indent + " ", v.pins); 00231 } 00232 }; 00233 00234 00235 } // namespace message_operations 00236 } // namespace ros 00237 00238 #endif // UBLOX_MSGS_MESSAGE_CFGANT_H 00239