Public Member Functions | Public Attributes
msp::msg::CommonSetting Struct Reference

#include <msp_msg.hpp>

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

List of all members.

Public Member Functions

 CommonSetting (FirmwareVariant v)
virtual bool decode (const ByteVector &data) override
 Decode message contents from a ByteVector.
virtual ByteVectorUptr encode () const override
 Encode all data into a ByteVector.
virtual ID id () const override
 get the ID of the message
virtual std::ostream & print (std::ostream &s) const override

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

Detailed Description

Definition at line 4932 of file msp_msg.hpp.


Constructor & Destructor Documentation

Definition at line 4933 of file msp_msg.hpp.


Member Function Documentation

virtual bool msp::msg::CommonSetting::decode ( const ByteVector ) [inline, override, virtual]

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 4957 of file msp_msg.hpp.

virtual ByteVectorUptr msp::msg::CommonSetting::encode ( ) const [inline, override, virtual]

Encode all data into a ByteVector.

Returns:
Unique pointer to a ByteVector of data

Reimplemented from msp::Message.

Definition at line 4948 of file msp_msg.hpp.

virtual ID msp::msg::CommonSetting::id ( ) const [inline, override, virtual]

get the ID of the message

Returns:
ID

Implements msp::Message.

Definition at line 4935 of file msp_msg.hpp.

virtual std::ostream& msp::msg::CommonSetting::print ( std::ostream &  s) const [inline, override, virtual]

Reimplemented from msp::Message.

Definition at line 4979 of file msp_msg.hpp.


Member Data Documentation

Definition at line 4946 of file msp_msg.hpp.

Definition at line 4943 of file msp_msg.hpp.

Definition at line 4941 of file msp_msg.hpp.

Definition at line 4939 of file msp_msg.hpp.

Definition at line 4937 of file msp_msg.hpp.

Definition at line 4944 of file msp_msg.hpp.

Definition at line 4940 of file msp_msg.hpp.

Definition at line 4942 of file msp_msg.hpp.

Definition at line 4938 of file msp_msg.hpp.


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


msp
Author(s): Christian Rauch
autogenerated on Thu Jun 20 2019 19:40:38