DUNE: Uniform Navigational Environment  2019.02.1
Sensors::Edgetech2205::CommandLink Class Reference

Public Member Functions

 CommandLink (Tasks::Task *parent, const Address &addr, unsigned port)
 
 ~CommandLink (void)
 
void setSocketTimeout (double value)
 
void setPingAutoselectMode (SubsystemId subsys, uint32_t mode)
 
void setDataActive (SubsystemId subsys, unsigned channel, uint32_t mode)
 
void setPingRange (SubsystemId subsys, uint32_t range)
 
void setAGC (SubsystemId subsys, uint32_t value)
 
unsigned getPingRange (SubsystemId subsys)
 
void setPingTrigger (SubsystemId subsys, TriggerMode mode)
 
void setPingCoupling (SubsystemId subsys, SubsystemId tsrc, uint32_t tdiv, uint32_t tdel)
 
void setPing (SubsystemId subsys, uint32_t value)
 
void dispatchDebugData (const std::string &text)
 
int64_t estimateTimeDelta (unsigned max_latency)
 
int64_t getEstimatedTimeDelta (void)
 
void shutdown (void)
 

Constructor & Destructor Documentation

Sensors::Edgetech2205::CommandLink::CommandLink ( Tasks::Task *  parent,
const Address &  addr,
unsigned  port 
)
inline

References setSocketTimeout().

Sensors::Edgetech2205::CommandLink::~CommandLink ( void  )
inline

Member Function Documentation

void Sensors::Edgetech2205::CommandLink::dispatchDebugData ( const std::string &  text)
inline

Referenced by estimateTimeDelta().

int64_t Sensors::Edgetech2205::CommandLink::getEstimatedTimeDelta ( void  )
inline
void Sensors::Edgetech2205::CommandLink::setPingCoupling ( SubsystemId  subsys,
SubsystemId  tsrc,
uint32_t  tdiv,
uint32_t  tdel 
)
inline

Set ping coupling parameters of slave systems.

Parameters
[in]subsyssubsystem identifier.
[in]tsrcid number of the master subsystem.
[in]tdivan integer divisor specifying that the slave subsystem will respond to every tdiv input from the master.
[in]tdeltrigger delay in microsecond.

References Sensors::Edgetech2205::COMMAND_TYPE_SET, Sensors::Edgetech2205::MSG_ID_PING_COUPLING_PARAMS, Sensors::Edgetech2205::Packet::set(), Sensors::Edgetech2205::Packet::setChannel(), Sensors::Edgetech2205::Packet::setCommandType(), Sensors::Edgetech2205::Packet::setMessageSize(), Sensors::Edgetech2205::Packet::setMessageType(), and Sensors::Edgetech2205::Packet::setSubsystemNumber().

Referenced by Sensors::Edgetech2205::Task::setTriggerCoupling().

void Sensors::Edgetech2205::CommandLink::setSocketTimeout ( double  value)
inline

Referenced by CommandLink().

Collaboration diagram for Sensors::Edgetech2205::CommandLink:
Collaboration graph