|
QGroundControl
Ground Control Station for MAVLink Drones
|
Support for Intel Hex firmware file. More...
#include <FirmwareImage.h>
Inheritance diagram for FirmwareImage:
Collaboration diagram for FirmwareImage:Signals | |
| void | errorMessage (const QString &errorString) |
| void | statusMessage (const QString &warningtring) |
Public Member Functions | |
| FirmwareImage (QObject *parent=0) | |
| bool | load (const QString &imageFilename, uint32_t boardId) |
| uint32_t | imageSize (void) const |
| Returns the number of bytes in the image. | |
| bool | imageIsBinFormat (void) const |
| QString | binFilename (void) const |
| uint16_t | ihxBlockCount (void) const |
| bool | ihxGetBlock (uint16_t index, uint16_t &address, QByteArray &bytes) const |
| bool | isCompatible (uint32_t boardId, uint32_t firmwareId) |
Support for Intel Hex firmware file.
Definition at line 10 of file FirmwareImage.h.
| FirmwareImage::FirmwareImage | ( | QObject * | parent = 0 | ) |
Definition at line 15 of file FirmwareImage.cc.
|
inline |
Definition at line 31 of file FirmwareImage.h.
|
signal |
| uint16_t FirmwareImage::ihxBlockCount | ( | void | ) | const |
Definition at line 392 of file FirmwareImage.cc.
Referenced by ihxGetBlock().
| bool FirmwareImage::ihxGetBlock | ( | uint16_t | index, |
| uint16_t & | address, | ||
| QByteArray & | bytes | ||
| ) | const |
Retrieves the specified block from the .ihx image
| index | Index of block to return |
| address | Address of returned block |
| byets | Bytes of returned block |
Definition at line 397 of file FirmwareImage.cc.
References ihxBlockCount().
|
inline |
Definition at line 28 of file FirmwareImage.h.
Referenced by Bootloader::program(), and Bootloader::verify().
|
inline |
Returns the number of bytes in the image.
Definition at line 25 of file FirmwareImage.h.
| bool FirmwareImage::isCompatible | ( | uint32_t | boardId, |
| uint32_t | firmwareId | ||
| ) |
Definition at line 173 of file FirmwareImage.cc.
References Bootloader::boardIDPX4FMUV3.
| bool FirmwareImage::load | ( | const QString & | imageFilename, |
| uint32_t | boardId | ||
| ) |
Loads the specified image file. Supported formats: .px4, .bin, .ihx. Emits errorMesssage and statusMessage signals while loading.
| imageFilename | Image file to load |
| boardId | Board id that we are going to load this image onto |
Definition at line 22 of file FirmwareImage.cc.
References statusMessage().
|
signal |
Referenced by load().