8#ifndef __ETHUPDATER_H__
9#define __ETHUPDATER_H__
12#include "EoUpdaterProtocol.h"
56 bool create(ACE_UINT16 port,ACE_UINT32 address)
65 bool create(ACE_UINT16 port,std::string& address)
68 ACE_UINT32 ip1,ip2,ip3,ip4;
69 sscanf(address.c_str(),
"%d.%d.%d.%d",&ip1,&ip2,&ip3,&ip4);
83 bool isCmdSupported(eOuprot_proc_capabilities_t capability, ACE_UINT32 address = 0);
108 std::string
cmdGetMoreInfo(
bool refreshInfo =
false, ACE_UINT32 address = 0);
119 bool cmdInfo32Set(
const string &info32, ACE_UINT32 address = 0);
134 bool cmdSetDEF2RUN(eOuprot_process_t process, ACE_UINT32 address = 0);
149 bool cmdBlink(ACE_UINT32 address = 0);
162 bool cmdReadEEPROM(uint16_t from, uint16_t size, ACE_UINT32 address, uint8_t **value);
176 std::string
cmdProgram(FILE *programFile,
int partition,
void (*updateProgressBar)(
float), ACE_UINT32 address = 0);
181 int sendPROG(
const uint8_t opc,
void *
data,
int size,
int answers,
int retry);
191 bool cmdChangeMask(ACE_UINT32 newMask, ACE_UINT32 address = 0);
197 bool cmdChangeMAC(uint64_t newMAC48, ACE_UINT32 address);
199 bool cmdPageClr(eOuprot_pagesize_t pagesize, ACE_UINT32 address = 0);
200 bool cmdPageSet(eOuprot_pagesize_t pagesize, uint8_t *
data, ACE_UINT32 address = 0);
201 bool cmdPageGet(eOuprot_pagesize_t pagesize, uint8_t **
data, ACE_UINT32 address);
bool Create(ACE_UINT16 port, std::string &address)
void sendCommandSelected(void *cmd, uint16_t len)
bool cmdRestart(ACE_UINT32 address=0)
bool cmdReadEEPROM(uint16_t from, uint16_t size, ACE_UINT32 address, uint8_t **value)
static const int partition_LOADER
BoardList & getBoardList()
std::string cmdProgram(FILE *programFile, int partition, void(*updateProgressBar)(float), ACE_UINT32 address=0)
int sendPROG(const uint8_t opc, void *data, int size, int answers, int retry)
unsigned char mRxBuffer[uprot_UDPmaxsize]
bool create(ACE_UINT16 port, ACE_UINT32 address)
bool cmdSetDEF2RUN(eOuprot_process_t process, ACE_UINT32 address=0)
bool cmdBlink(ACE_UINT32 address=0)
bool isCmdSupported(eOuprot_proc_capabilities_t capability, ACE_UINT32 address=0)
vector< string > cmdInfo32Get(ACE_UINT32 address=0)
bool cmdJumpUpd(ACE_UINT32 address=0)
bool cmdJump2ROMaddress(uint32_t romaddress, ACE_UINT32 address=0)
unsigned char mTxBuffer[uprot_UDPmaxsize]
static const int partition_APPLICATION
BoardInfo * mBoard2Prog[256]
bool create(ACE_UINT16 port, std::string &address)
bool cmdChangeAddress(ACE_UINT32 newaddress, ACE_UINT32 address=0)
static const int partition_UPDATER
bool cmdInfo32Set(const string &info32, ACE_UINT32 address=0)
std::string cmdGetMoreInfo(bool refreshInfo=false, ACE_UINT32 address=0)
bool cmdEraseEEPROM(ACE_UINT32 address=0)
bool cmdInfo32Clear(ACE_UINT32 address=0)