![]() |
|
IpbusMock
1.0.0
Library which integrates IPbus use in Phoenix
|
#include <HwInterface.h>
Collaboration diagram for PIpBusInterface::Node:Public Member Functions | |
| Node (HwInterface *_hwInterface, const std::string _nodeId) | |
| Constructor for the Node class. | |
| uint32_t | read () const |
| Reads a value from the node. | |
| std::vector< uint32_t > | readBlock (const uint32_t &aSize) const |
| Reads a block of data from the node. | |
| bool | write (const uint32_t &aValue) const |
| Writes a value to the node. | |
| bool | writeBlock (const std::vector< uint32_t > &aValues) const |
| Writes a block of data to a specific node. | |
| ~Node () | |
| Destructor for the Node class. | |
Private Attributes | |
| HwInterface * | hwInterface |
| std::string | nodeId |
Definition at line 19 of file HwInterface.h.
| Node::Node | ( | HwInterface * | _hwInterface, |
| const std::string | _nodeId ) |
Constructor for the Node class.
Initializes a Node object with a reference to the HwInterface and the node identifier.
| hwInterface | Pointer to the HwInterface instance. |
| nodeId | Identifier of the node. |
Definition at line 136 of file HwInterface.cpp.
References hwInterface, and nodeId.
| Node::~Node | ( | ) |
Destructor for the Node class.
Logs the deletion of the node.
Definition at line 146 of file HwInterface.cpp.
References nodeId.
| uint32_t Node::read | ( | ) | const |
Reads a value from the node.
Delegates the read operation to the HwInterface instance.
Definition at line 168 of file HwInterface.cpp.
References hwInterface, and nodeId.
| std::vector< uint32_t > Node::readBlock | ( | const uint32_t & | aSize | ) | const |
Reads a block of data from the node.
Delegates the readBlock operation to the HwInterface instance.
| aSize | Number of values to read. |
Definition at line 178 of file HwInterface.cpp.
References hwInterface, and nodeId.
| bool Node::write | ( | const uint32_t & | aValue | ) | const |
Writes a value to the node.
Delegates the write operation to the HwInterface instance.
| aValue | Value to write to the node. |
Definition at line 156 of file HwInterface.cpp.
References hwInterface, and nodeId.
| bool Node::writeBlock | ( | const std::vector< uint32_t > & | aValues | ) | const |
Writes a block of data to a specific node.
| aValues | Vector of values to write to the node. |
Definition at line 188 of file HwInterface.cpp.
References hwInterface, and nodeId.
|
private |
Definition at line 34 of file HwInterface.h.
Referenced by Node(), read(), readBlock(), write(), and writeBlock().
|
private |
Definition at line 35 of file HwInterface.h.
Referenced by Node(), read(), readBlock(), write(), writeBlock(), and ~Node().