Motion Master
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Flash Class Reference

#include <flash.h>

Public Member Functions

 Flash (VirtualDeviceManager &vdm, uint32_t device_address, const char *data, size_t size, bool skip_sii_installation)
 Unpack the ZIP file and validate the files inside. More...
 
MotionMasterError start ()
 Start the installation of the package files. More...
 
moodycamel::ReaderWriterQueue< motionmaster::MotionMasterMessage::Status * > & get_status_message_queue ()
 

Constructor & Destructor Documentation

◆ Flash()

Flash::Flash ( VirtualDeviceManager vdm,
uint32_t  device_address,
const char *  data,
size_t  size,
bool  skip_sii_installation 
)

Unpack the ZIP file and validate the files inside.

Parameters
vdmVirtual Device Manager reference
device_addressdevice ID
dataZIP file content as a byte array
sizesize of the byte array
skip_sii_installationskip the installation of the provided SII
Exceptions
anerror if any

Member Function Documentation

◆ get_status_message_queue()

moodycamel::ReaderWriterQueue< motionmaster::MotionMasterMessage::Status * > & Flash::get_status_message_queue ( )

◆ start()

MotionMasterError Flash::start ( )

Start the installation of the package files.

1) SII - flash the SII file to the ECAT module 2) BIN - flash the firmware to a device 3) ZIP - save to the flash memory of a device as an ordinary file

Returns
an error if any

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