APM:Libraries
Public Member Functions | Private Types | Private Attributes | List of all members
DFMessageWriter_WriteSysInfo Class Reference

#include <DFMessageWriter.h>

Inheritance diagram for DFMessageWriter_WriteSysInfo:
[legend]
Collaboration diagram for DFMessageWriter_WriteSysInfo:
[legend]

Public Member Functions

 DFMessageWriter_WriteSysInfo (const char *firmware_string)
 
void reset ()
 
void process ()
 
- Public Member Functions inherited from DFMessageWriter
virtual bool finished ()
 
virtual void set_dataflash_backend (class DataFlash_Backend *backend)
 

Private Types

enum  write_sysinfo_blockwriter_stage { ws_blockwriter_stage_init, ws_blockwriter_stage_firmware_string, ws_blockwriter_stage_git_versions, ws_blockwriter_stage_system_id }
 

Private Attributes

write_sysinfo_blockwriter_stage stage = ws_blockwriter_stage_init
 
const char * _firmware_string
 

Additional Inherited Members

- Protected Attributes inherited from DFMessageWriter
bool _finished = false
 
DataFlash_Backend_dataflash_backend = nullptr
 

Detailed Description

Definition at line 24 of file DFMessageWriter.h.

Member Enumeration Documentation

◆ write_sysinfo_blockwriter_stage

Enumerator
ws_blockwriter_stage_init 
ws_blockwriter_stage_firmware_string 
ws_blockwriter_stage_git_versions 
ws_blockwriter_stage_system_id 

Definition at line 35 of file DFMessageWriter.h.

Constructor & Destructor Documentation

◆ DFMessageWriter_WriteSysInfo()

DFMessageWriter_WriteSysInfo::DFMessageWriter_WriteSysInfo ( const char *  firmware_string)
inline

Definition at line 26 of file DFMessageWriter.h.

Here is the call graph for this function:

Member Function Documentation

◆ process()

void DFMessageWriter_WriteSysInfo::process ( )
virtual

Implements DFMessageWriter.

Definition at line 143 of file DFMessageWriter.cpp.

Here is the call graph for this function:

◆ reset()

void DFMessageWriter_WriteSysInfo::reset ( void  )
virtual

Implements DFMessageWriter.

Definition at line 131 of file DFMessageWriter.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _firmware_string

const char* DFMessageWriter_WriteSysInfo::_firmware_string
private

Definition at line 43 of file DFMessageWriter.h.

◆ stage

write_sysinfo_blockwriter_stage DFMessageWriter_WriteSysInfo::stage = ws_blockwriter_stage_init
private

Definition at line 41 of file DFMessageWriter.h.


The documentation for this class was generated from the following files: