iCub-main
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
EthUpdater Class Reference

#include <EthUpdater.h>

Public Member Functions

 EthUpdater ()
 
 ~EthUpdater ()
 
bool create (ACE_UINT16 port, ACE_UINT32 address)
 
bool create (ACE_UINT16 port, std::string &address)
 
BoardListgetBoardList ()
 
bool isCmdSupported (eOuprot_proc_capabilities_t capability, ACE_UINT32 address=0)
 
int cmdDiscover ()
 
std::string cmdGetMoreInfo (bool refreshInfo=false, ACE_UINT32 address=0)
 
bool cmdInfo32Clear (ACE_UINT32 address=0)
 
bool cmdInfo32Set (const string &info32, ACE_UINT32 address=0)
 
vector< string > cmdInfo32Get (ACE_UINT32 address=0)
 
bool cmdRestart (ACE_UINT32 address=0)
 
bool cmdSetDEF2RUN (eOuprot_process_t process, ACE_UINT32 address=0)
 
bool cmdJumpUpd (ACE_UINT32 address=0)
 
bool cmdJump2ROMaddress (uint32_t romaddress, ACE_UINT32 address=0)
 
bool cmdBlink (ACE_UINT32 address=0)
 
bool cmdEraseEEPROM (ACE_UINT32 address=0)
 
bool cmdReadEEPROM (uint16_t from, uint16_t size, ACE_UINT32 address, uint8_t **value)
 
bool cmdChangeAddress (ACE_UINT32 newaddress, ACE_UINT32 address=0)
 
std::string cmdProgram (FILE *programFile, int partition, void(*updateProgressBar)(float), ACE_UINT32 address=0)
 

Static Public Attributes

static const int partition_APPLICATION = uprot_partitionAPPLICATION
 
static const int partition_LOADER = uprot_partitionLOADER
 
static const int partition_UPDATER = uprot_partitionUPDATER
 

Protected Member Functions

void sendCommandSelected (void *cmd, uint16_t len)
 
int sendPROG (const uint8_t opc, void *data, int size, int answers, int retry)
 

Protected Attributes

BoardList mBoardList
 
int mN2Prog
 
int mNProgSteps
 
int mNChunks
 
BoardInfomBoard2Prog [256]
 
unsigned char mRxBuffer [uprot_UDPmaxsize]
 
unsigned char mTxBuffer [uprot_UDPmaxsize]
 
ACE_UINT16 mPort
 
ACE_UINT32 mBroadcast
 
ACE_UINT32 mMyAddress
 
DSocket mSocket
 

Detailed Description

Definition at line 21 of file EthUpdater.h.

Constructor & Destructor Documentation

◆ EthUpdater()

EthUpdater::EthUpdater ( )
inline

Definition at line 46 of file EthUpdater.h.

◆ ~EthUpdater()

EthUpdater::~EthUpdater ( )
inline

Definition at line 50 of file EthUpdater.h.

Member Function Documentation

◆ cmdBlink()

bool EthUpdater::cmdBlink ( ACE_UINT32  address = 0)

Definition at line 561 of file EthUpdater.cpp.

◆ cmdChangeAddress()

bool EthUpdater::cmdChangeAddress ( ACE_UINT32  newaddress,
ACE_UINT32  address = 0 
)

Definition at line 663 of file EthUpdater.cpp.

◆ cmdDiscover()

int EthUpdater::cmdDiscover ( )

Definition at line 26 of file EthUpdater.cpp.

◆ cmdEraseEEPROM()

bool EthUpdater::cmdEraseEEPROM ( ACE_UINT32  address = 0)

Definition at line 581 of file EthUpdater.cpp.

◆ cmdGetMoreInfo()

std::string EthUpdater::cmdGetMoreInfo ( bool  refreshInfo = false,
ACE_UINT32  address = 0 
)

Definition at line 167 of file EthUpdater.cpp.

◆ cmdInfo32Clear()

bool EthUpdater::cmdInfo32Clear ( ACE_UINT32  address = 0)

Definition at line 317 of file EthUpdater.cpp.

◆ cmdInfo32Get()

vector< string > EthUpdater::cmdInfo32Get ( ACE_UINT32  address = 0)

Definition at line 376 of file EthUpdater.cpp.

◆ cmdInfo32Set()

bool EthUpdater::cmdInfo32Set ( const string &  info32,
ACE_UINT32  address = 0 
)

Definition at line 337 of file EthUpdater.cpp.

◆ cmdJump2ROMaddress()

bool EthUpdater::cmdJump2ROMaddress ( uint32_t  romaddress,
ACE_UINT32  address = 0 
)

Definition at line 540 of file EthUpdater.cpp.

◆ cmdJumpUpd()

bool EthUpdater::cmdJumpUpd ( ACE_UINT32  address = 0)

Definition at line 520 of file EthUpdater.cpp.

◆ cmdProgram()

std::string EthUpdater::cmdProgram ( FILE *  programFile,
int  partition,
void(*)(float)  updateProgressBar,
ACE_UINT32  address = 0 
)

Definition at line 724 of file EthUpdater.cpp.

◆ cmdReadEEPROM()

bool EthUpdater::cmdReadEEPROM ( uint16_t  from,
uint16_t  size,
ACE_UINT32  address,
uint8_t **  value 
)

Definition at line 606 of file EthUpdater.cpp.

◆ cmdRestart()

bool EthUpdater::cmdRestart ( ACE_UINT32  address = 0)

Definition at line 458 of file EthUpdater.cpp.

◆ cmdSetDEF2RUN()

bool EthUpdater::cmdSetDEF2RUN ( eOuprot_process_t  process,
ACE_UINT32  address = 0 
)

Definition at line 478 of file EthUpdater.cpp.

◆ create() [1/2]

bool EthUpdater::create ( ACE_UINT16  port,
ACE_UINT32  address 
)
inline

Definition at line 56 of file EthUpdater.h.

◆ create() [2/2]

bool EthUpdater::create ( ACE_UINT16  port,
std::string &  address 
)
inline

Definition at line 65 of file EthUpdater.h.

◆ getBoardList()

BoardList& EthUpdater::getBoardList ( )
inline

Definition at line 76 of file EthUpdater.h.

◆ isCmdSupported()

bool EthUpdater::isCmdSupported ( eOuprot_proc_capabilities_t  capability,
ACE_UINT32  address = 0 
)

Definition at line 143 of file EthUpdater.cpp.

◆ sendCommandSelected()

void EthUpdater::sendCommandSelected ( void *  cmd,
uint16_t  len 
)
protected

Definition at line 1040 of file EthUpdater.cpp.

◆ sendPROG()

int EthUpdater::sendPROG ( const uint8_t  opc,
void *  data,
int  size,
int  answers,
int  retry 
)
protected

Definition at line 1053 of file EthUpdater.cpp.

Member Data Documentation

◆ mBoard2Prog

BoardInfo* EthUpdater::mBoard2Prog[256]
protected

Definition at line 30 of file EthUpdater.h.

◆ mBoardList

BoardList EthUpdater::mBoardList
protected

Definition at line 24 of file EthUpdater.h.

◆ mBroadcast

ACE_UINT32 EthUpdater::mBroadcast
protected

Definition at line 36 of file EthUpdater.h.

◆ mMyAddress

ACE_UINT32 EthUpdater::mMyAddress
protected

Definition at line 37 of file EthUpdater.h.

◆ mN2Prog

int EthUpdater::mN2Prog
protected

Definition at line 26 of file EthUpdater.h.

◆ mNChunks

int EthUpdater::mNChunks
protected

Definition at line 28 of file EthUpdater.h.

◆ mNProgSteps

int EthUpdater::mNProgSteps
protected

Definition at line 27 of file EthUpdater.h.

◆ mPort

ACE_UINT16 EthUpdater::mPort
protected

Definition at line 35 of file EthUpdater.h.

◆ mRxBuffer

unsigned char EthUpdater::mRxBuffer[uprot_UDPmaxsize]
protected

Definition at line 32 of file EthUpdater.h.

◆ mSocket

DSocket EthUpdater::mSocket
protected

Definition at line 39 of file EthUpdater.h.

◆ mTxBuffer

unsigned char EthUpdater::mTxBuffer[uprot_UDPmaxsize]
protected

Definition at line 33 of file EthUpdater.h.

◆ partition_APPLICATION

const int EthUpdater::partition_APPLICATION = uprot_partitionAPPLICATION
static

Definition at line 42 of file EthUpdater.h.

◆ partition_LOADER

const int EthUpdater::partition_LOADER = uprot_partitionLOADER
static

Definition at line 43 of file EthUpdater.h.

◆ partition_UPDATER

const int EthUpdater::partition_UPDATER = uprot_partitionUPDATER
static

Definition at line 44 of file EthUpdater.h.


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