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

#include <msp_msg.hpp>

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

Public Member Functions

 DataflashSummary (FirmwareVariant v)
 
virtual bool decode (const ByteVector &data) override
 Decode message contents from a ByteVector. More...
 
virtual ID id () const override
 get the ID of the message More...
 
- Public Member Functions inherited from msp::Message
virtual ByteVectorUptr encode () const
 Encode all data into 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

bool flash_is_ready
 
Value< uint32_t > offset
 
Value< uint32_t > sectors
 
Value< uint32_t > total_size
 

Additional Inherited Members

- Protected Attributes inherited from msp::Message
FirmwareVariant fw_variant
 

Detailed Description

Definition at line 1817 of file msp_msg.hpp.

Constructor & Destructor Documentation

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

Definition at line 1818 of file msp_msg.hpp.

Member Function Documentation

virtual bool msp::msg::DataflashSummary::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 1827 of file msp_msg.hpp.

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

get the ID of the message

Returns
ID

Implements msp::Message.

Definition at line 1820 of file msp_msg.hpp.

Member Data Documentation

bool msp::msg::DataflashSummary::flash_is_ready

Definition at line 1822 of file msp_msg.hpp.

Value<uint32_t> msp::msg::DataflashSummary::offset

Definition at line 1825 of file msp_msg.hpp.

Value<uint32_t> msp::msg::DataflashSummary::sectors

Definition at line 1823 of file msp_msg.hpp.

Value<uint32_t> msp::msg::DataflashSummary::total_size

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