register_node.hpp
1 #pragma once
2 
3 #include "../global.hpp"
4 
5 #include "_decl/decl_node.hpp"
6 
7 namespace Cvb
8 {
9 
10 CVB_BEGIN_INLINE_NS
11 
12 namespace GenApi
13 {
14 
16 
22  : public Node
23 {
24  public:
25 
26  RegisterNode(HandleGuard<Node>&& guard) noexcept
27  : Node(std::move(guard))
28  {
29  }
30 
32 
37  {
38  return GetInfoAsInt(NodeInfo::RegisterAddress);
39  }
40 
42 
47  {
48  return GetInfoAsInt(NodeInfo::RegisterLength);
49  }
50 };
51 
52 }
53 
54 using GenApi::RegisterNode;
55 
56 CVB_END_INLINE_NS
57 
58 }
Untyped register access (only memory).
Definition: register_node.hpp:21
Root namespace for the Image Manager interface.
Definition: version.hpp:11
std::int64_t Address() const
Gets the registers address.
Definition: register_node.hpp:36
Basic GenApi node for device feature access.
Definition: decl_node.hpp:38
std::int64_t Length() const
Gets the number of bytes occupied by the register.
Definition: register_node.hpp:46