24 #ifndef _ETHRESOURCE_H_
25 #define _ETHRESOURCE_H_
51 bool open2(eOipv4addr_t remIP, yarp::os::Searchable &cfgtotal);
58 const void *
getUDPtransmit(eOipv4addressing_t &destination,
size_t &sizeofpacket, uint16_t &numofrops);
64 bool getRemoteValue(
const eOprotID32_t id32,
void *value,
const double timeout = 0.100,
const unsigned int retries = 0);
66 bool getRemoteValues(
const std::vector<eOprotID32_t> &id32s,
const std::vector<void*> &values,
const double timeout = 0.500);
72 bool setcheckRemoteValue(
const eOprotID32_t id32,
void *value,
const unsigned int retries = 10,
const double waitbeforecheck = 0.001,
const double timeout = 0.050);
78 bool setLocalValue(eOprotID32_t id32,
const void *value,
bool overrideROprotection =
false);
89 bool serviceVerifyActivate(eOmn_serv_category_t category,
const eOmn_serv_parameter_t* param,
double timeout = 0.500);
90 bool serviceSetRegulars(eOmn_serv_category_t category, vector<eOprotID32_t> &id32vector,
double timeout = 0.500);
91 bool serviceStart(eOmn_serv_category_t category,
double timeout = 0.500);
92 bool serviceStop(eOmn_serv_category_t category,
double timeout = 0.500);
106 bool isInRunningMode;
112 bool verifiedEPprotocol[eoprot_endpoints_numberof];
113 bool verifiedBoardPresence;
114 bool askedBoardVersion;
116 eoprot_version_t boardMNprotocolversion;
117 eObrd_ethtype_t detectedBoardType;
119 bool verifiedBoardTransceiver;
121 bool cleanedBoardBehaviour;
122 uint16_t usedNumberOfRegularROPs;
134 eOmn_appl_config_t txconfig;
140 enum { defTXrateOfRegularROPs = 3, defcycletime = 1000, defmaxtimeRX = 400, defmaxtimeDO = 300, defmaxtimeTX = 300 };
144 bool setTimingOfRunningCycle();
145 bool verifyBoardPresence();
146 bool verifyBoardTransceiver();
147 bool cleanBoardBehaviour(
void);
148 bool askBoardVersion(
void);
150 bool isRunning(
void);
155 bool serviceCommand(eOmn_serv_operation_t operation, eOmn_serv_category_t category,
const eOmn_serv_parameter_t* param,
double timeout,
int times);
159 bool testMultipleASK();
bool getRemoteValues(const std::vector< eOprotID32_t > &id32s, const std::vector< void * > &values, const double timeout=0.500)
const void * getUDPtransmit(eOipv4addressing_t &destination, size_t &sizeofpacket, uint16_t &numofrops)
bool processRXpacket(const void *data, size_t size)
HostTransceiver * getTransceiver()
bool getLocalValue(const eOprotID32_t id32, void *value)
bool serviceSetRegulars(eOmn_serv_category_t category, vector< eOprotID32_t > &id32vector, double timeout=0.500)
bool open2(eOipv4addr_t remIP, yarp::os::Searchable &cfgtotal)
bool serviceStop(eOmn_serv_category_t category, double timeout=0.500)
bool verifyEPprotocol(eOprot_endpoint_t ep)
bool getRemoteValue(const eOprotID32_t id32, void *value, const double timeout=0.100, const unsigned int retries=0)
bool setLocalValue(eOprotID32_t id32, const void *value, bool overrideROprotection=false)
bool setRemoteValue(const eOprotID32_t id32, void *value)
bool setcheckRemoteValue(const eOprotID32_t id32, void *value, const unsigned int retries=10, const double waitbeforecheck=0.001, const double timeout=0.050)
bool serviceVerifyActivate(eOmn_serv_category_t category, const eOmn_serv_parameter_t *param, double timeout=0.500)
const Properties & getProperties()
bool serviceStart(eOmn_serv_category_t category, double timeout=0.500)
bool CANPrintHandler(eOmn_info_basic_t *infobasic)