|
μHAL (v2.7.9)
Part of the IPbus software repository
|
Go to the documentation of this file.
39 #ifndef _uhal_IPbusInspector_hpp_
40 #define _uhal_IPbusInspector_hpp_
53 template< u
int8_t IPbus_major , u
int8_t IPbus_minor >
90 bool analyze ( std::vector<uint32_t>::const_iterator& aIt ,
const std::vector<uint32_t>::const_iterator& aEnd ,
const bool& aContinueOnError =
true );
100 virtual void ni_read (
const uint32_t& aAddress );
106 virtual void read (
const uint32_t& aAddress );
120 virtual void ni_write (
const uint32_t& aAddress , std::vector<uint32_t>::const_iterator& aIt ,
const std::vector<uint32_t>::const_iterator& aEnd );
128 virtual void write (
const uint32_t& aAddress , std::vector<uint32_t>::const_iterator& aIt ,
const std::vector<uint32_t>::const_iterator& aEnd );
135 virtual void rmw_sum (
const uint32_t& aAddress ,
const uint32_t& aAddend );
143 virtual void rmw_bits (
const uint32_t& aAddress ,
const uint32_t& aAndTerm ,
const uint32_t& aOrTerm );
164 template< u
int8_t IPbus_major , u
int8_t IPbus_minor >
201 bool analyze ( std::vector<uint32_t>::const_iterator& aIt ,
const std::vector<uint32_t>::const_iterator& aEnd ,
const bool& aContinueOnError =
true );
212 virtual void ni_read ( std::vector<uint32_t>::const_iterator& aIt ,
const std::vector<uint32_t>::const_iterator& aEnd );
219 virtual void read ( std::vector<uint32_t>::const_iterator& aIt ,
const std::vector<uint32_t>::const_iterator& aEnd );
225 virtual void write ( );
231 virtual void rmw_sum (
const uint32_t& aNewValue );
237 virtual void rmw_bits (
const uint32_t& aNewValue );
virtual void unknown_type()
Virtual callback function for the case where the header is unknown.
virtual void resend_packet_header()
Virtual callback function called when an IPbus 2.0 resend packet header is observed.
bool analyze(std::vector< uint32_t >::const_iterator &aIt, const std::vector< uint32_t >::const_iterator &aEnd, const bool &aContinueOnError=true)
Analyse an IPbus packet held as a vector of uint32_t's.
uint8_t mResponseGood
The current error code/flag.
virtual void write()
Virtual callback function called when an incrementing write is observed.
virtual bool control_packet_header()
Virtual callback function called when an IPbus 2.0 control packet header is observed.
HostToTargetInspector()
Default constructor.
virtual void bot()
Virtual callback function called when a Byte-OrderTransaction is observed.
IPbusTransactionType mType
The current transaction type.
uint32_t mPacketCounter
The current IPbus2 packet counter.
uint32_t mHeader
The current raw transaction header.
uint32_t mWordCounter
The current word count.
virtual void rmw_sum(const uint32_t &aNewValue)
Virtual callback function called when a read-modify-write sum is observed.
uint32_t mTransactionId
The current transaction id.
IPbusTransactionType
Enumerated type to define the IPbus transaction type.
virtual void readConfigurationSpace(const uint32_t &aAddress)
Virtual callback function called when an incrementing "configuration space" read is observed.
uint8_t mResponseGood
The current error code/flag.
uint32_t mTransactionId
The current transaction id.
Helper class to decode IPbus packets as passed from the Client to the Target.
virtual void read(const uint32_t &aAddress)
Virtual callback function called when an incrementing read is observed.
virtual void write(const uint32_t &aAddress, std::vector< uint32_t >::const_iterator &aIt, const std::vector< uint32_t >::const_iterator &aEnd)
Virtual callback function called when an incrementing write is observed.
virtual void ni_read(std::vector< uint32_t >::const_iterator &aIt, const std::vector< uint32_t >::const_iterator &aEnd)
Virtual callback function called when a non-incrementing read is observed.
virtual void unknown_packet_header()
Virtual callback function called when an unknown IPbus 2.0 packet header is observed.
virtual void read(std::vector< uint32_t >::const_iterator &aIt, const std::vector< uint32_t >::const_iterator &aEnd)
Virtual callback function called when an incrementing read is observed.
virtual ~TargetToHostInspector()
Destructor.
virtual void rmw_bits(const uint32_t &aNewValue)
Virtual callback function called when a read-modify-write bits is observed.
uint32_t mPacketCounter
The current IPbus2 packet counter.
uint32_t mPacketType
The current IPbus2 packet type.
uint32_t mHeader
The current raw transaction header.
virtual void rmw_sum(const uint32_t &aAddress, const uint32_t &aAddend)
Virtual callback function called when a read-modify-write sum is observed.
Helper class to decode IPbus packets as passed from the Target to the Client.
uint32_t mPacketHeader
The current raw IPbus2 packet header.
virtual bool control_packet_header()
Virtual callback function called when an IPbus 2.0 control packet header is observed.
virtual void status_packet_header()
Virtual callback function called when an IPbus 2.0 status packet header is observed.
virtual ~HostToTargetInspector()
Destructor.
IPbusTransactionType mType
The current transaction type.
bool analyze(std::vector< uint32_t >::const_iterator &aIt, const std::vector< uint32_t >::const_iterator &aEnd, const bool &aContinueOnError=true)
Analyse an IPbus packet held as a vector of uint32_t's.
virtual void ni_write(const uint32_t &aAddress, std::vector< uint32_t >::const_iterator &aIt, const std::vector< uint32_t >::const_iterator &aEnd)
Virtual callback function called when a non-incrementing write is observed.
uint32_t mWordCounter
The current word count.
virtual void ni_read(const uint32_t &aAddress)
Virtual callback function called when a non-incrementing read is observed.
virtual void status_packet_header()
Virtual callback function called when an IPbus 2.0 status packet header is observed.
uint32_t mPacketHeader
The current raw IPbus2 packet header.
virtual void unknown_type()
Virtual callback function for the case where the header is unknown.
virtual void ni_write()
Virtual callback function called when a non-incrementing write is observed.
virtual void rmw_bits(const uint32_t &aAddress, const uint32_t &aAndTerm, const uint32_t &aOrTerm)
Virtual callback function called when a read-modify-write bits is observed.
uint32_t mPacketType
The current IPbus2 packet type.
TargetToHostInspector()
Default constructor.
virtual void unknown_packet_header()
Virtual callback function called when an unknown IPbus 2.0 packet header is observed.
virtual void bot()
Virtual callback function called when a Byte-OrderTransaction is observed.