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, bool isMultiCore=false)
 
cDownloadergetDownloader ()
 

Detailed Description

Definition at line 18 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 536 of file firmwareupdatercore.cpp.

◆ bootFromApplication()

void FirmwareUpdaterCore::bootFromApplication ( )

Definition at line 1194 of file firmwareupdatercore.cpp.

◆ bootFromUpdater()

void FirmwareUpdaterCore::bootFromUpdater ( )

Definition at line 1201 of file firmwareupdatercore.cpp.

◆ connectTo()

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

Definition at line 190 of file firmwareupdatercore.cpp.

◆ disconnectFrom()

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

Definition at line 180 of file firmwareupdatercore.cpp.

◆ eraseCanEprom()

void FirmwareUpdaterCore::eraseCanEprom ( )

Definition at line 278 of file firmwareupdatercore.cpp.

◆ eraseEthEprom()

bool FirmwareUpdaterCore::eraseEthEprom ( )

Definition at line 160 of file firmwareupdatercore.cpp.

◆ getCanBoardsFromDriver()

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

Definition at line 342 of file firmwareupdatercore.cpp.

◆ getCanBoardsFromEth()

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

Definition at line 421 of file firmwareupdatercore.cpp.

◆ getDevices()

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

Definition at line 175 of file firmwareupdatercore.cpp.

◆ getDevicesName()

QStringList FirmwareUpdaterCore::getDevicesName ( )

Definition at line 134 of file firmwareupdatercore.cpp.

◆ getDownloader()

cDownloader * FirmwareUpdaterCore::getDownloader ( )

Definition at line 1179 of file firmwareupdatercore.cpp.

◆ getEthBoardAddress()

QString FirmwareUpdaterCore::getEthBoardAddress ( int  index)

Definition at line 551 of file firmwareupdatercore.cpp.

◆ getEthBoardInfo()

QString FirmwareUpdaterCore::getEthBoardInfo ( int  index)

Definition at line 543 of file firmwareupdatercore.cpp.

◆ getEthBoardList()

EthBoardList FirmwareUpdaterCore::getEthBoardList ( )

Definition at line 224 of file firmwareupdatercore.cpp.

◆ getMoreDetails()

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

Definition at line 307 of file firmwareupdatercore.cpp.

◆ getProcessFromUint()

QString FirmwareUpdaterCore::getProcessFromUint ( uint8_t  id,
bool  isMultiCore = false 
)

Definition at line 323 of file firmwareupdatercore.cpp.

◆ goToApplication()

bool FirmwareUpdaterCore::goToApplication ( )

Definition at line 155 of file firmwareupdatercore.cpp.

◆ goToMaintenance()

bool FirmwareUpdaterCore::goToMaintenance ( )

Definition at line 147 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 213 of file firmwareupdatercore.cpp.

◆ jumpToUpdater()

bool FirmwareUpdaterCore::jumpToUpdater ( )

Definition at line 167 of file firmwareupdatercore.cpp.

◆ restartEthBoards()

void FirmwareUpdaterCore::restartEthBoards ( )

Definition at line 1186 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 607 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 584 of file firmwareupdatercore.cpp.

◆ setEthBoardAddress()

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

Definition at line 656 of file firmwareupdatercore.cpp.

◆ setEthBoardInfo()

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

Definition at line 561 of file firmwareupdatercore.cpp.

◆ setSelectedCanBoard()

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

Definition at line 283 of file firmwareupdatercore.cpp.

◆ setSelectedCanBoards()

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

Definition at line 252 of file firmwareupdatercore.cpp.

◆ setSelectedEthBoard() [1/2]

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

Definition at line 229 of file firmwareupdatercore.cpp.

◆ setSelectedEthBoard() [2/2]

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

Definition at line 239 of file firmwareupdatercore.cpp.

◆ setVerbosity()

bool FirmwareUpdaterCore::setVerbosity ( int  verb)

Definition at line 124 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 969 of file firmwareupdatercore.cpp.

◆ uploadEthApplication()

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

Definition at line 1147 of file firmwareupdatercore.cpp.

◆ uploadLoader()

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

Definition at line 701 of file firmwareupdatercore.cpp.

◆ uploadUpdater()

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

Definition at line 731 of file firmwareupdatercore.cpp.


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