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
65void fromDouble(ACE_Time_Value &v,
double x,
int unit=1);
93 bool configure(yarp::os::ResourceFinder &rf);
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);
EOtransceiver * transceiver
eOmn_appl_status_t * pApplStatus
virtual void onMsgReception(uint8_t *data, uint16_t size)
EOdeviceTransceiver * devtxrx
bool init(yarp::os::Searchable &config, uint32_t localipaddr, uint32_t remoteipaddr, uint16_t ipport, uint16_t pktsize, FEAT_boardnumber_t board_n)
bool createSocket(ACE_INET_Addr local_addr)
bool configure(yarp::os::ResourceFinder &rf)
void fromDouble(ACE_Time_Value &v, double x, int unit=1)
void getTransmit(uint8_t **data, uint16_t *size)
ACE_SOCK_Dgram * UDP_socket
eOdevicetransceiver_cfg_t devtxrxcfg
eOprotBRD_t protboardnumber
eOprotBRD_t get_protBRDnumber(void)
void checkDataForDebug(uint8_t *data, uint16_t size)