Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::ublox_msgs::CfgANT_<ContainerAllocator> > Ptr;
00055 typedef boost::shared_ptr< ::ublox_msgs::CfgANT_<ContainerAllocator> const> ConstPtr;
00056 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00057 };
00058 typedef ::ublox_msgs::CfgANT_<std::allocator<void> > CfgANT;
00059
00060 typedef boost::shared_ptr< ::ublox_msgs::CfgANT> CfgANTPtr;
00061 typedef boost::shared_ptr< ::ublox_msgs::CfgANT const> CfgANTConstPtr;
00062
00063
00064 template<typename ContainerAllocator>
00065 std::ostream& operator<<(std::ostream& s, const ::ublox_msgs::CfgANT_<ContainerAllocator> & v)
00066 {
00067 ros::message_operations::Printer< ::ublox_msgs::CfgANT_<ContainerAllocator> >::stream(s, "", v);
00068 return s;}
00069
00070 }
00071
00072 namespace ros
00073 {
00074 namespace message_traits
00075 {
00076 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgANT_<ContainerAllocator> > : public TrueType {};
00077 template<class ContainerAllocator> struct IsMessage< ::ublox_msgs::CfgANT_<ContainerAllocator> const> : public TrueType {};
00078 template<class ContainerAllocator>
00079 struct MD5Sum< ::ublox_msgs::CfgANT_<ContainerAllocator> > {
00080 static const char* value()
00081 {
00082 return "9e3add3a4d57d340f23eecf447a5c89e";
00083 }
00084
00085 static const char* value(const ::ublox_msgs::CfgANT_<ContainerAllocator> &) { return value(); }
00086 static const uint64_t static_value1 = 0x9e3add3a4d57d340ULL;
00087 static const uint64_t static_value2 = 0xf23eecf447a5c89eULL;
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct DataType< ::ublox_msgs::CfgANT_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "ublox_msgs/CfgANT";
00095 }
00096
00097 static const char* value(const ::ublox_msgs::CfgANT_<ContainerAllocator> &) { return value(); }
00098 };
00099
00100 template<class ContainerAllocator>
00101 struct Definition< ::ublox_msgs::CfgANT_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "# CFG-ANT (0x06 0x13)\n\
00105 # Antenna Control Settings\n\
00106 #\n\
00107 \n\
00108 uint8 CLASS_ID = 6\n\
00109 uint8 MESSAGE_ID = 19\n\
00110 \n\
00111 uint16 flags # Antenna Flag Mask\n\
00112 uint16 FLAGS_SVCS = 1 # Enable Antenna Supply Voltage Control Signal\n\
00113 uint16 FLAGS_SCD = 2 # Enable Short Circuit Detection\n\
00114 uint16 FLAGS_OCD = 4 # Enable Open Circuit Detection\n\
00115 uint16 FLAGS_PDWN_ON_SCD = 8 # Power Down Antenna supply if Short Circuit is detected. (only in combination with Bit 1)\n\
00116 uint16 FLAGS_RECOVERY = 16 # Enable automatic recovery from short state\n\
00117 \n\
00118 uint16 pins # Antenna Pin Configuration\n\
00119 uint16 PIN_SWITCH_MASK = 31 # PIO-Pin used for switching antenna supply (internal to TIM-LP/TIM-LF)\n\
00120 uint16 PIN_SCD_MASK = 992 # PIO-Pin used for detecting a short in the antenna supply\n\
00121 uint16 PIN_OCD_MASK = 31744 # PIO-Pin used for detecting open/not connected antenna\n\
00122 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\
00123 \n\
00124 ";
00125 }
00126
00127 static const char* value(const ::ublox_msgs::CfgANT_<ContainerAllocator> &) { return value(); }
00128 };
00129
00130 template<class ContainerAllocator> struct IsFixedSize< ::ublox_msgs::CfgANT_<ContainerAllocator> > : public TrueType {};
00131 }
00132 }
00133
00134 namespace ros
00135 {
00136 namespace serialization
00137 {
00138
00139 template<class ContainerAllocator> struct Serializer< ::ublox_msgs::CfgANT_<ContainerAllocator> >
00140 {
00141 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00142 {
00143 stream.next(m.flags);
00144 stream.next(m.pins);
00145 }
00146
00147 ROS_DECLARE_ALLINONE_SERIALIZER;
00148 };
00149 }
00150 }
00151
00152 namespace ros
00153 {
00154 namespace message_operations
00155 {
00156
00157 template<class ContainerAllocator>
00158 struct Printer< ::ublox_msgs::CfgANT_<ContainerAllocator> >
00159 {
00160 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ublox_msgs::CfgANT_<ContainerAllocator> & v)
00161 {
00162 s << indent << "flags: ";
00163 Printer<uint16_t>::stream(s, indent + " ", v.flags);
00164 s << indent << "pins: ";
00165 Printer<uint16_t>::stream(s, indent + " ", v.pins);
00166 }
00167 };
00168
00169
00170 }
00171 }
00172
00173 #endif // UBLOX_MSGS_MESSAGE_CFGANT_H
00174