iCub-main
Classes | Macros | Enumerations | Enumerator | Functions | Variables
hostTransceiver

It is an example of how the embOBJ can operate as host trasceiver. More...

Classes

class  eth::HostTransceiver
 
class  BoardTransceiver
 

Macros

#define RECV_BUFFER_SIZE   4000
 

Enumerations

enum  { eth::HostTransceiver::maxSizeOfRXpacket = 1496 }
 
enum  {
  eth::HostTransceiver::defMaxSizeOfROP = 256 ,
  eth::HostTransceiver::defMaxSizeOfTXpacket = 768
}
 

Functions

 eth::HostTransceiver::HostTransceiver ()
 
 eth::HostTransceiver::~HostTransceiver ()
 
bool eth::HostTransceiver::init2 (AbstractEthResource *owner, yarp::os::Searchable &cfgtotal, eOipv4addressing_t &localIPaddressing, eOipv4addr_t remoteIP, uint16_t rxpktsize=maxSizeOfRXpacket)
 
AbstractEthResourceeth::HostTransceiver::getOwner ()
 
bool eth::HostTransceiver::isEPsupported (const eOprot_endpoint_t ep)
 
bool eth::HostTransceiver::isID32supported (const eOprotID32_t id32)
 
bool eth::HostTransceiver::read (const eOprotID32_t id32, void *data)
 
bool eth::HostTransceiver::write (const eOprotID32_t id32, const void *data, bool forcewriteOfReadOnly)
 
bool eth::HostTransceiver::addROPset (const eOprotID32_t id32, const void *data, const uint32_t signature=eo_rop_SIGNATUREdummy)
 
bool eth::HostTransceiver::addROPask (const eOprotID32_t id32, const uint32_t signature=eo_rop_SIGNATUREdummy)
 
bool eth::HostTransceiver::parseUDP (const void *data, const uint16_t size)
 
const void * eth::HostTransceiver::getUDP (size_t &size, uint16_t &numofrops)
 
bool eth::HostTransceiver::getapplconfig (eOmn_appl_config_t &txcfg)
 
AbstractEthResourceeth::HostTransceiver::getResource ()
 
eOipv4addr_t eth::HostTransceiver::getIPv4 ()
 
void checkDataForDebug (uint8_t *data, uint16_t size)
 
void fromDouble (ACE_Time_Value &v, double x, int unit=1)
 
 BoardTransceiver::BoardTransceiver ()
 
 BoardTransceiver::~BoardTransceiver ()
 
bool BoardTransceiver::createSocket (ACE_INET_Addr local_addr)
 
bool BoardTransceiver::configure (yarp::os::ResourceFinder &rf)
 
bool BoardTransceiver::updateModule ()
 
bool BoardTransceiver::init (yarp::os::Searchable &config, uint32_t localipaddr, uint32_t remoteipaddr, uint16_t ipport, uint16_t pktsize, FEAT_boardnumber_t board_n)
 
virtual void BoardTransceiver::onMsgReception (uint8_t *data, uint16_t size)
 
void BoardTransceiver::getTransmit (uint8_t **data, uint16_t *size)
 
eOprotBRD_t BoardTransceiver::get_protBRDnumber (void)
 

Variables

eOprotBRD_t BoardTransceiver::protboardnumber
 
EOdeviceTransceiver * BoardTransceiver::devtxrx
 
EOtransceiver * BoardTransceiver::transceiver
 
eOdevicetransceiver_cfg_t BoardTransceiver::devtxrxcfg
 
EOnvSet * BoardTransceiver::nvset
 
uint32_t BoardTransceiver::localipaddr
 
uint32_t BoardTransceiver::remoteipaddr
 
uint16_t BoardTransceiver::remoteipport
 
EOpacket * BoardTransceiver::p_RxPkt
 
FEAT_ID BoardTransceiver::_fId
 
ACE_SOCK_Dgram * BoardTransceiver::UDP_socket
 
ACE_INET_Addr BoardTransceiver::pc104Addr
 
eOmn_appl_status_t * BoardTransceiver::pApplStatus
 
EOnv * BoardTransceiver::oneNV
 

Detailed Description

It is an example of how the embOBJ can operate as host trasceiver.


Macro Definition Documentation

◆ RECV_BUFFER_SIZE

#define RECV_BUFFER_SIZE   4000

Definition at line 60 of file boardTransceiver.hpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
maxSizeOfRXpacket 

Definition at line 66 of file hostTransceiver.hpp.

◆ anonymous enum

anonymous enum
Enumerator
defMaxSizeOfROP 
defMaxSizeOfTXpacket 

Definition at line 67 of file hostTransceiver.hpp.

Function Documentation

◆ BoardTransceiver()

BoardTransceiver::BoardTransceiver ( )

Definition at line 59 of file boardTransceiver.cpp.

◆ HostTransceiver()

HostTransceiver::HostTransceiver ( )

Definition at line 89 of file hostTransceiver.cpp.

◆ ~BoardTransceiver()

BoardTransceiver::~BoardTransceiver ( )

Definition at line 81 of file boardTransceiver.cpp.

◆ ~HostTransceiver()

HostTransceiver::~HostTransceiver ( )

Definition at line 115 of file hostTransceiver.cpp.

◆ addROPask()

bool HostTransceiver::addROPask ( const eOprotID32_t  id32,
const uint32_t  signature = eo_rop_SIGNATUREdummy 
)

Definition at line 413 of file hostTransceiver.cpp.

◆ addROPset()

bool HostTransceiver::addROPset ( const eOprotID32_t  id32,
const void *  data,
const uint32_t  signature = eo_rop_SIGNATUREdummy 
)

Definition at line 402 of file hostTransceiver.cpp.

◆ checkDataForDebug()

void checkDataForDebug ( uint8_t *  data,
uint16_t  size 
)

◆ configure()

bool BoardTransceiver::configure ( yarp::os::ResourceFinder &  rf)

Definition at line 86 of file boardTransceiver.cpp.

◆ createSocket()

bool BoardTransceiver::createSocket ( ACE_INET_Addr  local_addr)

Definition at line 139 of file boardTransceiver.cpp.

◆ fromDouble()

void fromDouble ( ACE_Time_Value &  v,
double  x,
int  unit = 1 
)

Definition at line 228 of file boardTransceiver.cpp.

◆ get_protBRDnumber()

eOprotBRD_t BoardTransceiver::get_protBRDnumber ( void  )

Definition at line 388 of file boardTransceiver.cpp.

◆ getapplconfig()

bool eth::HostTransceiver::getapplconfig ( eOmn_appl_config_t &  txcfg)

◆ getIPv4()

eOipv4addr_t HostTransceiver::getIPv4 ( )

Definition at line 223 of file hostTransceiver.cpp.

◆ getOwner()

AbstractEthResource* eth::HostTransceiver::getOwner ( )

◆ getResource()

AbstractEthResource * HostTransceiver::getResource ( )

Definition at line 228 of file hostTransceiver.cpp.

◆ getTransmit()

void BoardTransceiver::getTransmit ( uint8_t **  data,
uint16_t *  size 
)
protected

Definition at line 352 of file boardTransceiver.cpp.

◆ getUDP()

const void * HostTransceiver::getUDP ( size_t &  size,
uint16_t &  numofrops 
)

Definition at line 581 of file hostTransceiver.cpp.

◆ init()

bool BoardTransceiver::init ( yarp::os::Searchable &  config,
uint32_t  localipaddr,
uint32_t  remoteipaddr,
uint16_t  ipport,
uint16_t  pktsize,
FEAT_boardnumber_t  board_n 
)

Definition at line 163 of file boardTransceiver.cpp.

◆ init2()

bool HostTransceiver::init2 ( AbstractEthResource owner,
yarp::os::Searchable &  cfgtotal,
eOipv4addressing_t &  localIPaddressing,
eOipv4addr_t  remoteIP,
uint16_t  rxpktsize = maxSizeOfRXpacket 
)

Definition at line 137 of file hostTransceiver.cpp.

◆ isEPsupported()

bool HostTransceiver::isEPsupported ( const eOprot_endpoint_t  ep)

Definition at line 570 of file hostTransceiver.cpp.

◆ isID32supported()

bool HostTransceiver::isID32supported ( const eOprotID32_t  id32)

Definition at line 408 of file hostTransceiver.cpp.

◆ onMsgReception()

void BoardTransceiver::onMsgReception ( uint8_t *  data,
uint16_t  size 
)
virtual

Definition at line 316 of file boardTransceiver.cpp.

◆ parseUDP()

bool HostTransceiver::parseUDP ( const void *  data,
const uint16_t  size 
)

Definition at line 527 of file hostTransceiver.cpp.

◆ read()

bool HostTransceiver::read ( const eOprotID32_t  id32,
void *  data 
)

Definition at line 488 of file hostTransceiver.cpp.

◆ updateModule()

bool BoardTransceiver::updateModule ( )

Definition at line 238 of file boardTransceiver.cpp.

◆ write()

bool HostTransceiver::write ( const eOprotID32_t  id32,
const void *  data,
bool  forcewriteOfReadOnly 
)

Definition at line 234 of file hostTransceiver.cpp.

Variable Documentation

◆ _fId

FEAT_ID BoardTransceiver::_fId
protected

Definition at line 80 of file boardTransceiver.hpp.

◆ devtxrx

EOdeviceTransceiver* BoardTransceiver::devtxrx
protected

Definition at line 71 of file boardTransceiver.hpp.

◆ devtxrxcfg

eOdevicetransceiver_cfg_t BoardTransceiver::devtxrxcfg
protected

Definition at line 73 of file boardTransceiver.hpp.

◆ localipaddr

uint32_t BoardTransceiver::localipaddr
protected

Definition at line 75 of file boardTransceiver.hpp.

◆ nvset

EOnvSet* BoardTransceiver::nvset
protected

Definition at line 74 of file boardTransceiver.hpp.

◆ oneNV

EOnv* BoardTransceiver::oneNV
protected

Definition at line 85 of file boardTransceiver.hpp.

◆ p_RxPkt

EOpacket* BoardTransceiver::p_RxPkt
protected

Definition at line 78 of file boardTransceiver.hpp.

◆ pApplStatus

eOmn_appl_status_t* BoardTransceiver::pApplStatus
protected

Definition at line 84 of file boardTransceiver.hpp.

◆ pc104Addr

ACE_INET_Addr BoardTransceiver::pc104Addr
protected

Definition at line 82 of file boardTransceiver.hpp.

◆ protboardnumber

eOprotBRD_t BoardTransceiver::protboardnumber
protected

Definition at line 70 of file boardTransceiver.hpp.

◆ remoteipaddr

uint32_t BoardTransceiver::remoteipaddr
protected

Definition at line 76 of file boardTransceiver.hpp.

◆ remoteipport

uint16_t BoardTransceiver::remoteipport
protected

Definition at line 77 of file boardTransceiver.hpp.

◆ transceiver

EOtransceiver* BoardTransceiver::transceiver
protected

Definition at line 72 of file boardTransceiver.hpp.

◆ UDP_socket

ACE_SOCK_Dgram* BoardTransceiver::UDP_socket
protected

Definition at line 81 of file boardTransceiver.hpp.