20 #ifndef __ETHBOARD_H__
21 #define __ETHBOARD_H__
30 #include "EoUpdaterProtocol.h"
41 uint8_t boardinfo32[32];
47 eOuprot_procinfo_t extraprocesses[2];
58 boardtype = eobrd_ethtype_unknown;
60 applicationdetails = 0xff;
61 memset(&processes, 0,
sizeof(processes));
62 processes.numberofthem = 0;
63 processes.def2run = uprot_proc_None;
64 processes.runningnow = uprot_proc_None;
65 processes.startup = uprot_proc_None;
66 processes.info[0].type = processes.info[1].type = processes.info[2].type = uprot_proc_None;
67 memset(boardinfo32, 0,
sizeof(boardinfo32));
68 boardinfo32[0] = 0xff;
69 maintenanceIsActive =
false;
70 versionOfRunning.major = versionOfRunning.minor = 0;
71 moreinfostring.clear();
72 extraprocesses[0].type = extraprocesses[1].type = uprot_proc_None;
93 void setSelected(
bool selected);
97 void setIPV4(eOipv4addr_t ipv4);
99 eOipv4addr_t getIPV4();
101 string getIPV4string();
107 bool isInMaintenance();
109 bool isInApplication();
111 void setMoreInfo(
string &moreinfo);
113 const string getMoreInfo(
void);
115 string getInfoOnEEPROM(
void);
117 string getVersionfRunning(
void);
119 string getDatefRunning(
void);
121 string getCompilationDateOfRunning(
void);
136 ipv4selected = EO_COMMON_IPV4ADDR(0, 0, 0, 0),
137 ipv4all = EO_COMMON_IPV4ADDR(255, 255, 255, 255)
156 int rem(eOipv4addr_t ipv4);
163 void select(
bool on, eOipv4addr_t ipv4);
166 int numberof(eOipv4addr_t ipv4);
171 vector<EthBoard *> get(eOipv4addr_t ipv4);
vector< EthBoard > theboards
static const eOipv4addr_t ipv4all
static const eOipv4addr_t ipv4selected
Q15 add(const Q15 a, const Q15 b)
eOversion_t versionOfRunning
eObrd_ethtype_t boardtype
uint8_t applicationdetails
eOuprot_proctable_t processes