iCub-main
Signals | Public Member Functions | List of all members
FirmwareUpdaterCore Class Reference

#include <firmwareupdatercore.h>

+ Inheritance diagram for FirmwareUpdaterCore:

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< sBoardgetCanBoardsFromEth (QString address, QString *retString, int canID=CanPacket::everyCANbus, bool force=false)
 
QList< sBoardgetCanBoardsFromDriver (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)
 
cDownloadergetDownloader ()
 

Detailed Description

Definition at line 15 of file firmwareupdatercore.h.

Constructor & Destructor Documentation

◆ FirmwareUpdaterCore()

FirmwareUpdaterCore::FirmwareUpdaterCore ( QObject *  parent = 0)
explicit

Definition at line 49 of file firmwareupdatercore.cpp.

Member Function Documentation

◆ blinkEthBoards()

void FirmwareUpdaterCore::blinkEthBoards ( )

Definition at line 528 of file firmwareupdatercore.cpp.

◆ bootFromApplication()

void FirmwareUpdaterCore::bootFromApplication ( )

Definition at line 1186 of file firmwareupdatercore.cpp.

◆ bootFromUpdater()

void FirmwareUpdaterCore::bootFromUpdater ( )

Definition at line 1193 of file firmwareupdatercore.cpp.

◆ connectTo()

int FirmwareUpdaterCore::connectTo ( QString  device,
QString  id 
)

Definition at line 184 of file firmwareupdatercore.cpp.

◆ disconnectFrom()

void FirmwareUpdaterCore::disconnectFrom ( QString  device,
QString  id 
)

Definition at line 174 of file firmwareupdatercore.cpp.

◆ eraseCanEprom()

void FirmwareUpdaterCore::eraseCanEprom ( )

Definition at line 272 of file firmwareupdatercore.cpp.

◆ eraseEthEprom()

bool FirmwareUpdaterCore::eraseEthEprom ( )

Definition at line 154 of file firmwareupdatercore.cpp.

◆ getCanBoardsFromDriver()

QList< sBoard > FirmwareUpdaterCore::getCanBoardsFromDriver ( QString  driver,
int  networkId,
QString *  retString,
bool  force = false 
)

Definition at line 334 of file firmwareupdatercore.cpp.

◆ getCanBoardsFromEth()

QList< sBoard > FirmwareUpdaterCore::getCanBoardsFromEth ( QString  address,
QString *  retString,
int  canID = CanPacket::everyCANbus,
bool  force = false 
)

Definition at line 413 of file firmwareupdatercore.cpp.

◆ getDevices()

QList< QPair< QString, QVariant > > FirmwareUpdaterCore::getDevices ( )

Definition at line 169 of file firmwareupdatercore.cpp.

◆ getDevicesName()

QStringList FirmwareUpdaterCore::getDevicesName ( )

Definition at line 128 of file firmwareupdatercore.cpp.

◆ getDownloader()

cDownloader * FirmwareUpdaterCore::getDownloader ( )

Definition at line 1171 of file firmwareupdatercore.cpp.

◆ getEthBoardAddress()

QString FirmwareUpdaterCore::getEthBoardAddress ( int  index)

Definition at line 543 of file firmwareupdatercore.cpp.

◆ getEthBoardInfo()

QString FirmwareUpdaterCore::getEthBoardInfo ( int  index)

Definition at line 535 of file firmwareupdatercore.cpp.

◆ getEthBoardList()

EthBoardList FirmwareUpdaterCore::getEthBoardList ( )

Definition at line 218 of file firmwareupdatercore.cpp.

◆ getMoreDetails()

boardInfo2_t FirmwareUpdaterCore::getMoreDetails ( int  boardNum = EthMaintainer::ipv4OfAllSelected,
QString *  infoString = NULL,
eOipv4addr_t *  address = NULL 
)

Definition at line 301 of file firmwareupdatercore.cpp.

◆ getProcessFromUint()

QString FirmwareUpdaterCore::getProcessFromUint ( uint8_t  id)

Definition at line 317 of file firmwareupdatercore.cpp.

◆ goToApplication()

bool FirmwareUpdaterCore::goToApplication ( )

Definition at line 149 of file firmwareupdatercore.cpp.

◆ goToMaintenance()

bool FirmwareUpdaterCore::goToMaintenance ( )

Definition at line 141 of file firmwareupdatercore.cpp.

◆ init()

bool FirmwareUpdaterCore::init ( Searchable &  config,
int  port,
QString  address,
int  VerbositY 
)

Definition at line 54 of file firmwareupdatercore.cpp.

◆ isBoardInMaintenanceMode()

bool FirmwareUpdaterCore::isBoardInMaintenanceMode ( QString  ip)

Definition at line 207 of file firmwareupdatercore.cpp.

◆ jumpToUpdater()

bool FirmwareUpdaterCore::jumpToUpdater ( )

Definition at line 161 of file firmwareupdatercore.cpp.

◆ restartEthBoards()

void FirmwareUpdaterCore::restartEthBoards ( )

Definition at line 1178 of file firmwareupdatercore.cpp.

◆ selectedEnded

void FirmwareUpdaterCore::selectedEnded ( )
signal

◆ setCanBoardAddress()

bool FirmwareUpdaterCore::setCanBoardAddress ( int  bus,
int  id,
int  canType,
QString  newAddress,
QString  ethAddress = "",
int  deviceId = -1,
QString *  resultString = NULL 
)

Definition at line 599 of file firmwareupdatercore.cpp.

◆ setCanBoardInfo()

void FirmwareUpdaterCore::setCanBoardInfo ( int  bus,
int  id,
QString  newInfo,
QString  ethAddress = "",
int  deviceId = -1,
QString *  resultString = NULL 
)

Definition at line 576 of file firmwareupdatercore.cpp.

◆ setEthBoardAddress()

bool FirmwareUpdaterCore::setEthBoardAddress ( int  index,
QString  newAddress 
)

Definition at line 648 of file firmwareupdatercore.cpp.

◆ setEthBoardInfo()

bool FirmwareUpdaterCore::setEthBoardInfo ( int  index,
QString  newInfo 
)

Definition at line 553 of file firmwareupdatercore.cpp.

◆ setSelectedCanBoard()

void FirmwareUpdaterCore::setSelectedCanBoard ( int  index,
bool  selected,
QString  ethAddress = "",
int  deviceId = -1 
)

Definition at line 277 of file firmwareupdatercore.cpp.

◆ setSelectedCanBoards()

void FirmwareUpdaterCore::setSelectedCanBoards ( QList< sBoard selectedBoards,
QString  address,
int  deviceId = -1 
)

Definition at line 246 of file firmwareupdatercore.cpp.

◆ setSelectedEthBoard() [1/2]

void FirmwareUpdaterCore::setSelectedEthBoard ( int  index,
bool  selected 
)

Definition at line 223 of file firmwareupdatercore.cpp.

◆ setSelectedEthBoard() [2/2]

void FirmwareUpdaterCore::setSelectedEthBoard ( QString  boardIp,
bool  selected 
)

Definition at line 233 of file firmwareupdatercore.cpp.

◆ setVerbosity()

bool FirmwareUpdaterCore::setVerbosity ( int  verb)

Definition at line 118 of file firmwareupdatercore.cpp.

◆ updateProgress

void FirmwareUpdaterCore::updateProgress ( float  )
signal

◆ uploadCanApplication()

bool FirmwareUpdaterCore::uploadCanApplication ( QString  filename,
QString *  resultString,
bool  ee,
QString  address = "",
int  deviceId = -1,
QList< sBoard > *  resultCanBoards = NULL 
)

Definition at line 961 of file firmwareupdatercore.cpp.

◆ uploadEthApplication()

bool FirmwareUpdaterCore::uploadEthApplication ( QString  filename,
QString *  resultString 
)

Definition at line 1139 of file firmwareupdatercore.cpp.

◆ uploadLoader()

bool FirmwareUpdaterCore::uploadLoader ( QString  filename,
QString *  resultString 
)

Definition at line 693 of file firmwareupdatercore.cpp.

◆ uploadUpdater()

bool FirmwareUpdaterCore::uploadUpdater ( QString  filename,
QString *  resultString 
)

Definition at line 723 of file firmwareupdatercore.cpp.


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