5#include "uhal/uhal.hpp"
6#include <uhal/log/LogLevels.hpp>
10 IpBusImpl(
const std::string &connectionFilePath,
11 const std::string &connectionId);
14 bool read(
const std::string &nodeId, uint32_t &res);
15 bool write(
const std::string &nodeId,
const uint32_t values);
16 bool readBlock(
const std::string &nodeId, std::vector<uint32_t> &results,
17 const uint32_t &aSize);
19 const std::vector<uint32_t> values);
20 uint32_t
getSize(
const std::string &nodeId)
const;
23 const std::string &connectionId);
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.
uint32_t getSize(const std::string &nodeId) const
Computes the node size.
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.
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.
static IpBusImpl * pipbus_createSocket(const std::string &connectionFilePath, const std::string &connectionId)
Creates an IpBusImpl instance.
uhal::HwInterface * hardwareInterface
bool write(const std::string &nodeId, const uint32_t values)
Writes a register using the uHAL library.
void close()
Close the IpBusImpl connection.
static void setLogLevelTo(const std::string level)
Sets the uHAL log level to the given level.