Public Member Functions | Public Attributes | List of all members
msp::msg::CommonSetSetting Struct Reference

#include <msp_msg.hpp>

Inheritance diagram for msp::msg::CommonSetSetting:
Inheritance graph
[legend]

Public Member Functions

 CommonSetSetting (FirmwareVariant v)
 
virtual ByteVectorUptr encode () const override
 Encode all data into a ByteVector. More...
 
virtual ID id () const override
 get the ID of the message More...
 
- Public Member Functions inherited from msp::Message
virtual bool decode (const ByteVector &)
 Decode message contents from a ByteVector. More...
 
FirmwareVariant getFirmwareVariant () const
 Queries the firmware variant the message works with. More...
 
 Message (FirmwareVariant v)
 Message constructor accepting a FirmwareVariant. More...
 
virtual std::ostream & print (std::ostream &s) const
 
void setFirmwareVariant (FirmwareVariant v)
 Set the firmware the message should work with. More...
 
virtual ~Message ()
 Message destructor. More...
 

Public Attributes

DATA_TYPE expected_data_type
 
Value< float > float_val
 
Value< int16_t > int16_val
 
Value< int8_t > int8_val
 
Value< std::string > setting_name
 
Value< std::string > string_val
 
Value< uint16_t > uint16_val
 
Value< uint32_t > uint32_val
 
Value< uint8_t > uint8_val
 

Additional Inherited Members

- Protected Attributes inherited from msp::Message
FirmwareVariant fw_variant
 

Detailed Description

Definition at line 5071 of file msp_msg.hpp.

Constructor & Destructor Documentation

msp::msg::CommonSetSetting::CommonSetSetting ( FirmwareVariant  v)
inline

Definition at line 5072 of file msp_msg.hpp.

Member Function Documentation

virtual ByteVectorUptr msp::msg::CommonSetSetting::encode ( ) const
inlineoverridevirtual

Encode all data into a ByteVector.

Returns
Unique pointer to a ByteVector of data

Reimplemented from msp::Message.

Definition at line 5087 of file msp_msg.hpp.

virtual ID msp::msg::CommonSetSetting::id ( ) const
inlineoverridevirtual

get the ID of the message

Returns
ID

Implements msp::Message.

Definition at line 5074 of file msp_msg.hpp.

Member Data Documentation

DATA_TYPE msp::msg::CommonSetSetting::expected_data_type

Definition at line 5085 of file msp_msg.hpp.

Value<float> msp::msg::CommonSetSetting::float_val

Definition at line 5082 of file msp_msg.hpp.

Value<int16_t> msp::msg::CommonSetSetting::int16_val

Definition at line 5080 of file msp_msg.hpp.

Value<int8_t> msp::msg::CommonSetSetting::int8_val

Definition at line 5078 of file msp_msg.hpp.

Value<std::string> msp::msg::CommonSetSetting::setting_name

Definition at line 5076 of file msp_msg.hpp.

Value<std::string> msp::msg::CommonSetSetting::string_val

Definition at line 5083 of file msp_msg.hpp.

Value<uint16_t> msp::msg::CommonSetSetting::uint16_val

Definition at line 5079 of file msp_msg.hpp.

Value<uint32_t> msp::msg::CommonSetSetting::uint32_val

Definition at line 5081 of file msp_msg.hpp.

Value<uint8_t> msp::msg::CommonSetSetting::uint8_val

Definition at line 5077 of file msp_msg.hpp.


The documentation for this struct was generated from the following file:


msp
Author(s): Christian Rauch
autogenerated on Tue Oct 6 2020 03:39:02