41#include <boost/test/unit_test.hpp>
55 HwInterface
hw = getHwInterface();
57 uint32_t
x =
static_cast<uint32_t
> ( rand() );
64 ValWord<uint32_t> reg_l =
hw.
getNode (
"REG_LOWER_MASK" ).
read();
65 ValWord<uint32_t> reg_u =
hw.
getNode (
"REG_UPPER_MASK" ).
read();
const Node & getNode() const
Retrieve the top-level node.
void dispatch()
Make the IPbus client issue a dispatch.
ValWord< uint32_t > read() const
Read a single, unmasked, unsigned word.
const uint32_t & getMask() const
Return the mask to be applied if this node is a sub-field, rather than an entire register.
ValHeader write(const uint32_t &aValue) const
Write a single, unmasked word to a register.
An abstract base exception class, including an interface to throw as the derived type (for passing ex...
None tests(nox.Session session)
BOOST_CHECK_THROW(hw.getNode("REG").writeBlockOffset(xx, 0), uhal::exception::BulkTransferOffsetRequestedForSingleRegister)
BOOST_CHECK_EQUAL(mem.size(), N)
BOOST_CHECK_NO_THROW(hw.getNode("REG").writeBlock(xx))
BOOST_CHECK(!mem.valid())
#define UHAL_TESTS_DEFINE_CLIENT_TEST_CASES(test_suite_name, test_case_name, test_fixture, test_case_contents)