iCub-main
|
#include "mainwindow.h"
#include <QApplication>
#include <QCommandLineParser>
#include <QCommandLineOption>
#include <QFileInfo>
#include <qdebug.h>
#include <QDir>
#include "firmwareupdatercore.h"
Go to the source code of this file.
Enumerations | |
enum | action_t { action_impossible = -1 , action_none = 0 , action_discover = 1 , action_verify = 2 , action_program = 3 , action_forcemaintenance = 4 , action_forceapplication = 5 , action_query = 6 , action_loaddatfile = 7 , action_setstrainsn = 8 , action_setstraingainsoffsets = 9 , action_getcanboardversion = 10 , action_savedatfile = 11 , action_changeCanId = 12 , action_changeBoardIp = 13 , action_setstrainft45gainsoffsets = 14 , action_setstrainft58gainsoffsets = 15 , action_setstraingainsspecificoffsets = 16 } |
enum class | SensorModel { ft45 , ft58 } |
Functions | |
bool | checkApplicationLock () |
void | removeApplicationLock () |
void | printCanDevices (QList< sBoard > canBoards, QString onIPboard, bool slimprint) |
int | printSecondLevelDevices (FirmwareUpdaterCore *, QString device, QString id, bool slimprint) |
int | printThirdLevelDevices (FirmwareUpdaterCore *, QString device, QString id, QString board, bool forceMaintenance, bool forceApplication, bool slimprint) |
int | programEthDevice (FirmwareUpdaterCore *, QString device, QString id, QString board, QString file) |
int | programCanDevice (FirmwareUpdaterCore *, QString device, QString id, QString board, QString canLine, QString canId, QString file, bool eraseEEprom) |
int | setBoardToApplication (FirmwareUpdaterCore *core, QString device, QString id, QString board) |
int | setBoardToMaintenance (FirmwareUpdaterCore *core, QString device, QString id, QString board) |
int | verifyOnSecondLevel (FirmwareUpdaterCore *core, QString device, QString id, const QString &targetIPaddr, const QString &targetCANline, const QString &targetCANaddr, const QString &targetFWvers) |
int | verifyOnSecondLevel_ETHboard (FirmwareUpdaterCore *core, QString device, QString id, const QString &targetIPaddr, const QString &targetFWvers) |
int | verifyOnSecondLevel_CANboard (FirmwareUpdaterCore *core, QString device, QString id, const QString &targetCANline, const QString &targetCANaddr, const QString &targetFWvers) |
int | verifyCanDevices (QList< sBoard > canBoards, const QString &targetCANline, const QString &targetCANaddr, const QString &targetFWvers) |
int | verifyOnThirdLevel_CANunderETH (FirmwareUpdaterCore *core, QString device, QString id, QString board, const QString &targetCANline, const QString &targetCANaddr, const QString &targetFWvers) |
int | queryOnSecondLevel_ETHboard (FirmwareUpdaterCore *core, QString device, QString id, const QString &targetIPaddr) |
int | queryOnSecondLevel_CANboard (FirmwareUpdaterCore *core, QString device, QString id, const QString &targetCANline, const QString &targetCANaddr) |
int | queryCanDevices (QList< sBoard > canBoards, const QString onIPboard, const QString &targetCANline, const QString &targetCANaddr) |
int | queryOnThirdLevel_CANunderETH (FirmwareUpdaterCore *core, QString device, QString id, const QString board, const QString &targetCANline, const QString &targetCANaddr) |
int | loadDatFileStrain2 (FirmwareUpdaterCore *core, QString device, QString id, QString board, QString canLine, QString canId, QString file, bool eraseEEprom) |
int | saveDatFileStrain2 (FirmwareUpdaterCore *core, QString device, QString id, QString board, QString canLine, QString canId, bool eraseEEprom) |
int | setStrainSn (FirmwareUpdaterCore *core, QString device, QString id, QString board, QString canLine, QString canId, QString serialNumber) |
int | setStrainGainsOffsets (FirmwareUpdaterCore *core, QString device, QString id, QString board, QString canLine, QString canId, SensorModel model) |
int | getCanBoardVersion (FirmwareUpdaterCore *core, QString device, QString id, QString board, QString canLine, QString canId, bool save) |
int | changeCanId (FirmwareUpdaterCore *core, QString device, QString id, QString board, QString canLine, QString canId, QString canIdNew) |
int | changeBoardIp (FirmwareUpdaterCore *core, QString device, QString id, QString board, QString newipaddr) |
void | checkForAction (bool &actionIsValid, action_t const &actionValue, action_t &actionResult) |
int | main (int argc, char *argv[]) |
Variables | |
int | verbosity = 1 |
enum action_t |
|
strong |
int changeBoardIp | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
QString | board, | ||
QString | newipaddr | ||
) |
int changeCanId | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
QString | board, | ||
QString | canLine, | ||
QString | canId, | ||
QString | canIdNew | ||
) |
int getCanBoardVersion | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
QString | board, | ||
QString | canLine, | ||
QString | canId, | ||
bool | save | ||
) |
int loadDatFileStrain2 | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
QString | board, | ||
QString | canLine, | ||
QString | canId, | ||
QString | file, | ||
bool | eraseEEprom | ||
) |
void printCanDevices | ( | QList< sBoard > | canBoards, |
QString | onIPboard, | ||
bool | slimprint | ||
) |
int printSecondLevelDevices | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
bool | slimprint | ||
) |
int printThirdLevelDevices | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
QString | board, | ||
bool | forceMaintenance, | ||
bool | forceApplication, | ||
bool | slimprint | ||
) |
int programCanDevice | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
QString | board, | ||
QString | canLine, | ||
QString | canId, | ||
QString | file, | ||
bool | eraseEEprom | ||
) |
int programEthDevice | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
QString | board, | ||
QString | file | ||
) |
int queryCanDevices | ( | QList< sBoard > | canBoards, |
const QString | onIPboard, | ||
const QString & | targetCANline, | ||
const QString & | targetCANaddr | ||
) |
int queryOnSecondLevel_CANboard | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
const QString & | targetCANline, | ||
const QString & | targetCANaddr | ||
) |
int queryOnSecondLevel_ETHboard | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
const QString & | targetIPaddr | ||
) |
int queryOnThirdLevel_CANunderETH | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
const QString | board, | ||
const QString & | targetCANline, | ||
const QString & | targetCANaddr | ||
) |
int saveDatFileStrain2 | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
QString | board, | ||
QString | canLine, | ||
QString | canId, | ||
bool | eraseEEprom | ||
) |
int setBoardToApplication | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
QString | board | ||
) |
int setBoardToMaintenance | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
QString | board | ||
) |
int setStrainGainsOffsets | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
QString | board, | ||
QString | canLine, | ||
QString | canId, | ||
SensorModel | model | ||
) |
int setStrainSn | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
QString | board, | ||
QString | canLine, | ||
QString | canId, | ||
QString | serialNumber | ||
) |
int verifyCanDevices | ( | QList< sBoard > | canBoards, |
const QString & | targetCANline, | ||
const QString & | targetCANaddr, | ||
const QString & | targetFWvers | ||
) |
int verifyOnSecondLevel | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
const QString & | targetIPaddr, | ||
const QString & | targetCANline, | ||
const QString & | targetCANaddr, | ||
const QString & | targetFWvers | ||
) |
int verifyOnSecondLevel_CANboard | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
const QString & | targetCANline, | ||
const QString & | targetCANaddr, | ||
const QString & | targetFWvers | ||
) |
int verifyOnSecondLevel_ETHboard | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
const QString & | targetIPaddr, | ||
const QString & | targetFWvers | ||
) |
int verifyOnThirdLevel_CANunderETH | ( | FirmwareUpdaterCore * | core, |
QString | device, | ||
QString | id, | ||
QString | board, | ||
const QString & | targetCANline, | ||
const QString & | targetCANaddr, | ||
const QString & | targetFWvers | ||
) |