Abstract base class to emulate IPbus hardware.
More...
#include <uhal/tests/DummyHardware.hpp>
|
| uint32_t | GetEndpoint (const uint32_t &aAddress) |
| |
| void | bot () |
| | Analyse request and create reply when a Byte-OrderTransaction is observed. More...
|
| |
| void | ni_read (const uint32_t &aAddress) |
| | Analyse request and create reply when a non-incrementing read is observed. More...
|
| |
| void | read (const uint32_t &aAddress) |
| | Analyse request and create reply when an incrementing read is observed. More...
|
| |
| void | readConfigurationSpace (const uint32_t &aAddress) |
| | Analyse request and create reply when an incrementing "configuration space" read is observed. More...
|
| |
| void | ni_write (const uint32_t &aAddress, std::vector< uint32_t >::const_iterator &aIt, const std::vector< uint32_t >::const_iterator &aEnd) |
| | Analyse request and create reply when a non-incrementing write is observed. More...
|
| |
| void | write (const uint32_t &aAddress, std::vector< uint32_t >::const_iterator &aIt, const std::vector< uint32_t >::const_iterator &aEnd) |
| | Analyse request and create reply when an incrementing write is observed. More...
|
| |
| void | rmw_sum (const uint32_t &aAddress, const uint32_t &aAddend) |
| | Analyse request and create reply when a read-modify-write sum is observed. More...
|
| |
| void | rmw_bits (const uint32_t &aAddress, const uint32_t &aAndTerm, const uint32_t &aOrTerm) |
| | Analyse request and create reply when a read-modify-write bits is observed. More...
|
| |
| void | unknown_type () |
| | Analyse request and create reply when the header is unknown. More...
|
| |
| bool | control_packet_header () |
| | Analyse request and create reply when an IPbus 2.0 control packet header is observed. More...
|
| |
| void | status_packet_header () |
| | Analyse request and create reply when an IPbus 2.0 status packet header is observed. More...
|
| |
| void | resend_packet_header () |
| | Analyse request and create reply when an IPbus 2.0 resend packet header is observed. More...
|
| |
| void | unknown_packet_header () |
| | Analyse request and create reply when an unknown IPbus 2.0 packet header is observed. More...
|
| |
template<uint8_t IPbus_major, uint8_t IPbus_minor>
class uhal::tests::DummyHardware< IPbus_major, IPbus_minor >
Abstract base class to emulate IPbus hardware.
Definition at line 95 of file DummyHardware.hpp.
◆ base_type
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ DummyHardware()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
Constructor.
- Parameters
-
| aReplyDelay | a time delay between the reply and response for the first transaction |
| aBigEndianHack | whether we are using the dummy hardware with a client which uses the big-endian hack. |
Definition at line 57 of file DummyHardware.cpp.
◆ ~DummyHardware()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ AnalyzeReceivedAndCreateReply()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
Function which analyses the received IPbus packet and creates the suitable response.
- Parameters
-
| aByteCount | the number of bytes received |
Definition at line 82 of file DummyHardware.cpp.
◆ bot()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ control_packet_header()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ GetEndpoint()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ ni_read()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ ni_write()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
| void uhal::tests::DummyHardware< IPbus_major, IPbus_minor >::ni_write |
( |
const uint32_t & |
aAddress, |
|
|
std::vector< uint32_t >::const_iterator & |
aIt, |
|
|
const std::vector< uint32_t >::const_iterator & |
aEnd |
|
) |
| |
|
privatevirtual |
◆ read()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ readConfigurationSpace()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ resend_packet_header()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ rmw_bits()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
| void uhal::tests::DummyHardware< IPbus_major, IPbus_minor >::rmw_bits |
( |
const uint32_t & |
aAddress, |
|
|
const uint32_t & |
aAndTerm, |
|
|
const uint32_t & |
aOrTerm |
|
) |
| |
|
privatevirtual |
◆ rmw_sum()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ SetEndpoint()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ status_packet_header()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ unknown_packet_header()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ unknown_type()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ write()
template<uint8_t IPbus_major, uint8_t IPbus_minor>
| void uhal::tests::DummyHardware< IPbus_major, IPbus_minor >::write |
( |
const uint32_t & |
aAddress, |
|
|
std::vector< uint32_t >::const_iterator & |
aIt, |
|
|
const std::vector< uint32_t >::const_iterator & |
aEnd |
|
) |
| |
|
privatevirtual |
◆ mBigEndianHack
template<uint8_t IPbus_major, uint8_t IPbus_minor>
Whether we are talking to an IPbus client which includes the big-endian hack.
Definition at line 231 of file DummyHardware.hpp.
◆ mConfigurationSpace
template<uint8_t IPbus_major, uint8_t IPbus_minor>
The configuration space within the virtual hardware.
Definition at line 207 of file DummyHardware.hpp.
◆ mLastPacketHeader
template<uint8_t IPbus_major, uint8_t IPbus_minor>
The last sent packet header for the retry mechanism (IPbus 2.0 and above only)
Definition at line 219 of file DummyHardware.hpp.
◆ mMemory
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ mReceive
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ mReceivedControlPacketHeaderHistory
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ mReply
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ mReplyHistory
template<uint8_t IPbus_major, uint8_t IPbus_minor>
| std::deque< std::pair< uint32_t , std::vector< uint32_t > > > uhal::tests::DummyHardware< IPbus_major, IPbus_minor >::mReplyHistory |
|
protected |
The history of the replies for the retry mechanism (IPbus 2.0 and above only)
Definition at line 216 of file DummyHardware.hpp.
◆ mSentControlPacketHeaderHistory
template<uint8_t IPbus_major, uint8_t IPbus_minor>
◆ mTrafficHistory
template<uint8_t IPbus_major, uint8_t IPbus_minor>
The documentation for this class was generated from the following files: