ChimeraTK-DeviceAccess  03.18.00
ChimeraTK::RebotProtocol1 Struct Reference

#include <RebotProtocol1.h>

+ Inheritance diagram for ChimeraTK::RebotProtocol1:
+ Collaboration diagram for ChimeraTK::RebotProtocol1:

Public Member Functions

 RebotProtocol1 (boost::shared_ptr< Rebot::Connection > &tcpCommunicator)
 
virtual ~RebotProtocol1 ()
 
virtual void read (uint32_t addressInBytes, int32_t *data, size_t sizeInBytes) override
 
virtual void write (uint32_t addressInBytes, int32_t const *data, size_t sizeInBytes) override
 
virtual void sendHeartbeat () override
 
- Public Member Functions inherited from ChimeraTK::RebotProtocol0
 RebotProtocol0 (boost::shared_ptr< Rebot::Connection > &tcpCommunicator)
 
virtual ~RebotProtocol0 ()
 
void fetchFromRebotServer (uint32_t wordAddress, uint32_t numberOfWords, int32_t *dataLocation) const
 
void sendRebotReadRequest (const uint32_t wordAddress, const uint32_t wordsToRead) const
 
- Public Member Functions inherited from ChimeraTK::RebotProtocolImplementor
virtual ~RebotProtocolImplementor ()
 

Public Attributes

std::chrono::time_point< std::chrono::steady_clock > _lastSendTime
 No need to make it atomic (time_points cannot be because they are not trivially copyable). More...
 
- Public Attributes inherited from ChimeraTK::RebotProtocol0
boost::shared_ptr< Rebot::Connection_tcpCommunicator
 

Additional Inherited Members

- Static Public Member Functions inherited from ChimeraTK::RebotProtocol0
static void transferVectorToDataPtr (const std::vector< uint32_t > &source, int32_t *destination)
 

Detailed Description

Definition at line 11 of file RebotProtocol1.h.

Constructor & Destructor Documentation

◆ RebotProtocol1()

ChimeraTK::RebotProtocol1::RebotProtocol1 ( boost::shared_ptr< Rebot::Connection > &  tcpCommunicator)
explicit

Definition at line 12 of file RebotProtocol1.cc.

◆ ~RebotProtocol1()

virtual ChimeraTK::RebotProtocol1::~RebotProtocol1 ( )
inlinevirtual

Definition at line 13 of file RebotProtocol1.h.

Member Function Documentation

◆ read()

void ChimeraTK::RebotProtocol1::read ( uint32_t  addressInBytes,
int32_t *  data,
size_t  sizeInBytes 
)
overridevirtual

Reimplemented from ChimeraTK::RebotProtocol0.

Definition at line 19 of file RebotProtocol1.cc.

+ Here is the call graph for this function:

◆ sendHeartbeat()

void ChimeraTK::RebotProtocol1::sendHeartbeat ( )
overridevirtual

Reimplemented from ChimeraTK::RebotProtocol0.

Definition at line 47 of file RebotProtocol1.cc.

◆ write()

void ChimeraTK::RebotProtocol1::write ( uint32_t  addressInBytes,
int32_t const *  data,
size_t  sizeInBytes 
)
overridevirtual

Reimplemented from ChimeraTK::RebotProtocol0.

Definition at line 30 of file RebotProtocol1.cc.

Member Data Documentation

◆ _lastSendTime

std::chrono::time_point<std::chrono::steady_clock> ChimeraTK::RebotProtocol1::_lastSendTime

No need to make it atomic (time_points cannot be because they are not trivially copyable).

It is protected by the hardware accessing mutex in the Rebot backend. Make sure you get it every time you read or write this time stamp.

Definition at line 24 of file RebotProtocol1.h.


The documentation for this struct was generated from the following files: