18 #ifndef _HOSTTRANSCEIVER_H_
19 #define _HOSTTRANSCEIVER_H_
40 #include "EOdeviceTransceiver.h"
41 #include "EOtransceiver.h"
45 #include "EoProtocol.h"
51 #include <ace/config.h>
52 #include <ace/Thread.h>
53 #include <ace/SOCK_Dgram_Bcast.h>
55 #include <yarp/os/RFModule.h>
56 #include <yarp/dev/DeviceDriver.h>
60 #define RECV_BUFFER_SIZE 4000
65 void fromDouble(ACE_Time_Value &v,
double x,
int unit=1);
92 bool createSocket(ACE_INET_Addr local_addr);
93 bool configure(yarp::os::ResourceFinder &rf);
97 bool init(yarp::os::Searchable &config, uint32_t localipaddr, uint32_t remoteipaddr, uint16_t ipport, uint16_t pktsize,
FEAT_boardnumber_t board_n);
101 virtual void onMsgReception(uint8_t *
data, uint16_t size);
108 void getTransmit(uint8_t **
data, uint16_t *size);
113 bool initProtocol(yarp::os::Searchable &config);
115 void eoprot_override_mn(
void);
116 void eoprot_override_mc(
void);
117 void eoprot_override_as(
void);
118 void eoprot_override_sk(
void);
120 bool prepareTransceiverConfig(yarp::os::Searchable &config);
123 const eOnvset_DEVcfg_t * getNVset_DEVcfg(yarp::os::Searchable &config);
127 eOprotBRD_t get_protBRDnumber(
void);
EOtransceiver * transceiver
eOmn_appl_status_t * pApplStatus
EOdeviceTransceiver * devtxrx
void fromDouble(ACE_Time_Value &v, double x, int unit=1)
ACE_SOCK_Dgram * UDP_socket
eOdevicetransceiver_cfg_t devtxrxcfg
eOprotBRD_t protboardnumber
void checkDataForDebug(uint8_t *data, uint16_t size)