![]() |
|
IpbusMock
1.0.0
Library which integrates IPbus use in Phoenix
|
#include <ipbrw.h>
Public Member Functions | |
| void | close () |
| Close the IpBusImpl connection. | |
| uint32_t | getSize (const std::string &nodeId) const |
| Computes the node size. | |
| IpBusImpl (const std::string &connectionFilePath, const std::string &connectionId) | |
| Constructor of IpBusImpl. | |
| bool | read (const std::string &nodeId, uint32_t &res) |
| Reads a register using the uHAL library. | |
| bool | readBlock (const std::string &nodeId, std::vector< uint32_t > &results, const uint32_t &aSize) |
| Reads a block of data from a block of registers or a block-read port. | |
| bool | write (const std::string &nodeId, const uint32_t values) |
| Writes a register using the uHAL library. | |
| bool | writeBlock (const std::string &nodeId, const std::vector< uint32_t > values) |
| Writes a block of data to a block of registers or a block-write port. | |
| ~IpBusImpl () | |
| Destructor of IpBusImpl. | |
Static Public Member Functions | |
| static IpBusImpl * | pipbus_createSocket (const std::string &connectionFilePath, const std::string &connectionId) |
| Creates an IpBusImpl instance. | |
| static void | setLogLevelTo (const std::string level) |
| Sets the uHAL log level to the given level. | |
Private Attributes | |
| uhal::HwInterface * | hardwareInterface |
| IpBusImpl::IpBusImpl | ( | const std::string & | connectionFilePath, |
| const std::string & | connectionId ) |
Constructor of IpBusImpl.
| connectionFilePath | Path to the connection file. |
| connectionId | Identifier for the connection. |
Definition at line 12 of file ipbrw.cpp.
References hardwareInterface.
Referenced by pipbus_createSocket().
Here is the caller graph for this function:| IpBusImpl::~IpBusImpl | ( | ) |
| void IpBusImpl::close | ( | ) |
Close the IpBusImpl connection.
Definition at line 151 of file ipbrw.cpp.
References hardwareInterface.
| uint32_t IpBusImpl::getSize | ( | const std::string & | nodeId | ) | const |
Computes the node size.
| nodeId | Identifier of the node. |
Definition at line 33 of file ipbrw.cpp.
References hardwareInterface.
|
static |
Creates an IpBusImpl instance.
| connectionFilePath | Path to the connection file. |
| connectionId | Identifier for the connection. |
Definition at line 117 of file ipbrw.cpp.
References IpBusImpl().
Referenced by PIpBusSocket::createClientSocket().
Here is the call graph for this function:
Here is the caller graph for this function:| bool IpBusImpl::read | ( | const std::string & | nodeId, |
| uint32_t & | result ) |
Reads a register using the uHAL library.
| nodeId | Identifier of the node. |
| result | Reference to store the read value. |
Definition at line 44 of file ipbrw.cpp.
References hardwareInterface.
| bool IpBusImpl::readBlock | ( | const std::string & | nodeId, |
| std::vector< uint32_t > & | results, | ||
| const uint32_t & | aSize ) |
Reads a block of data from a block of registers or a block-read port.
| nodeId | Identifier of the node. |
| results | Vector to store the read values. |
| aSize | Number of words to read. |
Definition at line 79 of file ipbrw.cpp.
References hardwareInterface.
|
static |
Sets the uHAL log level to the given level.
| level | Log level (e.g., Debug, Info, Warning, etc.). |
Definition at line 128 of file ipbrw.cpp.
| bool IpBusImpl::write | ( | const std::string & | nodeId, |
| const uint32_t | value ) |
Writes a register using the uHAL library.
| nodeId | Identifier of the node. |
| value | Value to write. |
Definition at line 64 of file ipbrw.cpp.
References hardwareInterface.
| bool IpBusImpl::writeBlock | ( | const std::string & | nodeId, |
| const std::vector< uint32_t > | values ) |
Writes a block of data to a block of registers or a block-write port.
| nodeId | Identifier of the node. |
| values | Vector of values to write. |
Definition at line 102 of file ipbrw.cpp.
References hardwareInterface.
|
private |
Definition at line 29 of file ipbrw.h.
Referenced by close(), getSize(), IpBusImpl(), read(), readBlock(), write(), writeBlock(), and ~IpBusImpl().