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

#include <msp_msg.hpp>

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

Public Member Functions

 CommonSetting (FirmwareVariant v)
 
virtual bool decode (const ByteVector &data) override
 Decode message contents from a ByteVector. More...
 
virtual ByteVectorUptr encode () const override
 Encode all data into a ByteVector. More...
 
virtual ID id () const override
 get the ID of the message More...
 
virtual std::ostream & print (std::ostream &s) const override
 
- Public Member Functions inherited from msp::Message
FirmwareVariant getFirmwareVariant () const
 Queries the firmware variant the message works with. More...
 
 Message (FirmwareVariant v)
 Message constructor accepting a FirmwareVariant. More...
 
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 4988 of file msp_msg.hpp.

Constructor & Destructor Documentation

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

Definition at line 4989 of file msp_msg.hpp.

Member Function Documentation

virtual bool msp::msg::CommonSetting::decode ( const ByteVector )
inlineoverridevirtual

Decode message contents from a ByteVector.

Parameters
dataSource of data
Returns
False. Override methods should return true on success

Reimplemented from msp::Message.

Definition at line 5012 of file msp_msg.hpp.

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

Encode all data into a ByteVector.

Returns
Unique pointer to a ByteVector of data

Reimplemented from msp::Message.

Definition at line 5004 of file msp_msg.hpp.

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

get the ID of the message

Returns
ID

Implements msp::Message.

Definition at line 4991 of file msp_msg.hpp.

virtual std::ostream& msp::msg::CommonSetting::print ( std::ostream &  s) const
inlineoverridevirtual

Reimplemented from msp::Message.

Definition at line 5033 of file msp_msg.hpp.

Member Data Documentation

DATA_TYPE msp::msg::CommonSetting::expected_data_type

Definition at line 5002 of file msp_msg.hpp.

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

Definition at line 4999 of file msp_msg.hpp.

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

Definition at line 4997 of file msp_msg.hpp.

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

Definition at line 4995 of file msp_msg.hpp.

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

Definition at line 4993 of file msp_msg.hpp.

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

Definition at line 5000 of file msp_msg.hpp.

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

Definition at line 4996 of file msp_msg.hpp.

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

Definition at line 4998 of file msp_msg.hpp.

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

Definition at line 4994 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