iCub-main
|
#include <firmwareupdatercore.h>
Signals | |
void | updateProgress (float) |
void | selectedEnded () |
Public Member Functions | |
FirmwareUpdaterCore (QObject *parent=0) | |
bool | init (Searchable &config, int port, QString address, int VerbositY) |
bool | setVerbosity (int verb) |
QStringList | getDevicesName () |
QList< QPair< QString, QVariant > > | getDevices () |
int | connectTo (QString device, QString id) |
bool | isBoardInMaintenanceMode (QString ip) |
void | disconnectFrom (QString device, QString id) |
EthBoardList | getEthBoardList () |
void | setSelectedEthBoard (int index, bool selected) |
void | setSelectedEthBoard (QString boardIp, bool selected) |
void | setSelectedCanBoard (int index, bool selected, QString ethAddress="", int deviceId=-1) |
void | setSelectedCanBoards (QList< sBoard > selectedBoards, QString address, int deviceId=-1) |
boardInfo2_t | getMoreDetails (int boardNum=EthMaintainer::ipv4OfAllSelected, QString *infoString=NULL, eOipv4addr_t *address=NULL) |
QList< sBoard > | getCanBoardsFromEth (QString address, QString *retString, int canID=CanPacket::everyCANbus, bool force=false) |
QList< sBoard > | getCanBoardsFromDriver (QString driver, int networkId, QString *retString, bool force=false) |
void | blinkEthBoards () |
QString | getEthBoardInfo (int index) |
QString | getEthBoardAddress (int index) |
bool | setEthBoardInfo (int index, QString newInfo) |
void | setCanBoardInfo (int bus, int id, QString newInfo, QString ethAddress="", int deviceId=-1, QString *resultString=NULL) |
bool | setEthBoardAddress (int index, QString newAddress) |
bool | setCanBoardAddress (int bus, int id, int canType, QString newAddress, QString ethAddress="", int deviceId=-1, QString *resultString=NULL) |
void | restartEthBoards () |
void | bootFromApplication () |
void | bootFromUpdater () |
bool | uploadEthApplication (QString filename, QString *resultString) |
bool | uploadCanApplication (QString filename, QString *resultString, bool ee, QString address="", int deviceId=-1, QList< sBoard > *resultCanBoards=NULL) |
bool | uploadLoader (QString filename, QString *resultString) |
bool | uploadUpdater (QString filename, QString *resultString) |
bool | jumpToUpdater () |
bool | goToApplication () |
bool | goToMaintenance () |
bool | eraseEthEprom () |
void | eraseCanEprom () |
QString | getProcessFromUint (uint8_t id, bool isMultiCore=false) |
cDownloader * | getDownloader () |
Definition at line 18 of file firmwareupdatercore.h.
|
explicit |
Definition at line 49 of file firmwareupdatercore.cpp.
void FirmwareUpdaterCore::blinkEthBoards | ( | ) |
Definition at line 536 of file firmwareupdatercore.cpp.
void FirmwareUpdaterCore::bootFromApplication | ( | ) |
Definition at line 1194 of file firmwareupdatercore.cpp.
void FirmwareUpdaterCore::bootFromUpdater | ( | ) |
Definition at line 1201 of file firmwareupdatercore.cpp.
int FirmwareUpdaterCore::connectTo | ( | QString | device, |
QString | id | ||
) |
Definition at line 190 of file firmwareupdatercore.cpp.
void FirmwareUpdaterCore::disconnectFrom | ( | QString | device, |
QString | id | ||
) |
Definition at line 180 of file firmwareupdatercore.cpp.
void FirmwareUpdaterCore::eraseCanEprom | ( | ) |
Definition at line 278 of file firmwareupdatercore.cpp.
bool FirmwareUpdaterCore::eraseEthEprom | ( | ) |
Definition at line 160 of file firmwareupdatercore.cpp.
QList< sBoard > FirmwareUpdaterCore::getCanBoardsFromDriver | ( | QString | driver, |
int | networkId, | ||
QString * | retString, | ||
bool | force = false |
||
) |
Definition at line 342 of file firmwareupdatercore.cpp.
QList< sBoard > FirmwareUpdaterCore::getCanBoardsFromEth | ( | QString | address, |
QString * | retString, | ||
int | canID = CanPacket::everyCANbus , |
||
bool | force = false |
||
) |
Definition at line 421 of file firmwareupdatercore.cpp.
QList< QPair< QString, QVariant > > FirmwareUpdaterCore::getDevices | ( | ) |
Definition at line 175 of file firmwareupdatercore.cpp.
QStringList FirmwareUpdaterCore::getDevicesName | ( | ) |
Definition at line 134 of file firmwareupdatercore.cpp.
cDownloader * FirmwareUpdaterCore::getDownloader | ( | ) |
Definition at line 1179 of file firmwareupdatercore.cpp.
QString FirmwareUpdaterCore::getEthBoardAddress | ( | int | index | ) |
Definition at line 551 of file firmwareupdatercore.cpp.
QString FirmwareUpdaterCore::getEthBoardInfo | ( | int | index | ) |
Definition at line 543 of file firmwareupdatercore.cpp.
EthBoardList FirmwareUpdaterCore::getEthBoardList | ( | ) |
Definition at line 224 of file firmwareupdatercore.cpp.
boardInfo2_t FirmwareUpdaterCore::getMoreDetails | ( | int | boardNum = EthMaintainer::ipv4OfAllSelected , |
QString * | infoString = NULL , |
||
eOipv4addr_t * | address = NULL |
||
) |
Definition at line 307 of file firmwareupdatercore.cpp.
QString FirmwareUpdaterCore::getProcessFromUint | ( | uint8_t | id, |
bool | isMultiCore = false |
||
) |
Definition at line 323 of file firmwareupdatercore.cpp.
bool FirmwareUpdaterCore::goToApplication | ( | ) |
Definition at line 155 of file firmwareupdatercore.cpp.
bool FirmwareUpdaterCore::goToMaintenance | ( | ) |
Definition at line 147 of file firmwareupdatercore.cpp.
bool FirmwareUpdaterCore::init | ( | Searchable & | config, |
int | port, | ||
QString | address, | ||
int | VerbositY | ||
) |
Definition at line 54 of file firmwareupdatercore.cpp.
bool FirmwareUpdaterCore::isBoardInMaintenanceMode | ( | QString | ip | ) |
Definition at line 213 of file firmwareupdatercore.cpp.
bool FirmwareUpdaterCore::jumpToUpdater | ( | ) |
Definition at line 167 of file firmwareupdatercore.cpp.
void FirmwareUpdaterCore::restartEthBoards | ( | ) |
Definition at line 1186 of file firmwareupdatercore.cpp.
|
signal |
bool FirmwareUpdaterCore::setCanBoardAddress | ( | int | bus, |
int | id, | ||
int | canType, | ||
QString | newAddress, | ||
QString | ethAddress = "" , |
||
int | deviceId = -1 , |
||
QString * | resultString = NULL |
||
) |
Definition at line 607 of file firmwareupdatercore.cpp.
void FirmwareUpdaterCore::setCanBoardInfo | ( | int | bus, |
int | id, | ||
QString | newInfo, | ||
QString | ethAddress = "" , |
||
int | deviceId = -1 , |
||
QString * | resultString = NULL |
||
) |
Definition at line 584 of file firmwareupdatercore.cpp.
bool FirmwareUpdaterCore::setEthBoardAddress | ( | int | index, |
QString | newAddress | ||
) |
Definition at line 656 of file firmwareupdatercore.cpp.
bool FirmwareUpdaterCore::setEthBoardInfo | ( | int | index, |
QString | newInfo | ||
) |
Definition at line 561 of file firmwareupdatercore.cpp.
void FirmwareUpdaterCore::setSelectedCanBoard | ( | int | index, |
bool | selected, | ||
QString | ethAddress = "" , |
||
int | deviceId = -1 |
||
) |
Definition at line 283 of file firmwareupdatercore.cpp.
void FirmwareUpdaterCore::setSelectedCanBoards | ( | QList< sBoard > | selectedBoards, |
QString | address, | ||
int | deviceId = -1 |
||
) |
Definition at line 252 of file firmwareupdatercore.cpp.
void FirmwareUpdaterCore::setSelectedEthBoard | ( | int | index, |
bool | selected | ||
) |
Definition at line 229 of file firmwareupdatercore.cpp.
void FirmwareUpdaterCore::setSelectedEthBoard | ( | QString | boardIp, |
bool | selected | ||
) |
Definition at line 239 of file firmwareupdatercore.cpp.
bool FirmwareUpdaterCore::setVerbosity | ( | int | verb | ) |
Definition at line 124 of file firmwareupdatercore.cpp.
|
signal |
bool FirmwareUpdaterCore::uploadCanApplication | ( | QString | filename, |
QString * | resultString, | ||
bool | ee, | ||
QString | address = "" , |
||
int | deviceId = -1 , |
||
QList< sBoard > * | resultCanBoards = NULL |
||
) |
Definition at line 969 of file firmwareupdatercore.cpp.
bool FirmwareUpdaterCore::uploadEthApplication | ( | QString | filename, |
QString * | resultString | ||
) |
Definition at line 1147 of file firmwareupdatercore.cpp.
bool FirmwareUpdaterCore::uploadLoader | ( | QString | filename, |
QString * | resultString | ||
) |
Definition at line 701 of file firmwareupdatercore.cpp.
bool FirmwareUpdaterCore::uploadUpdater | ( | QString | filename, |
QString * | resultString | ||
) |
Definition at line 731 of file firmwareupdatercore.cpp.