Extension methods for register implementation. More...
Static Public Member Functions | |
static long | GetAddress (this ValueNode node) |
Reads the register address from the given node . More... | |
static long | GetLength (this ValueNode node) |
Gets the register length in bytes from the given node . More... | |
static AccessMode | GetAccessMode (ValueNode node) |
Gets the access mode from the given node . More... | |
static void | SetAccessMode (this ValueNode node, AccessMode value) |
Sets the access mode on the given node . More... | |
static CacheMode | GetCacheMode (ValueNode node) |
Gets the current cache mode of the given register node . More... | |
static void | SetCacheMode (this ValueNode node, CacheMode value) |
Sets the cache mode on the given node . More... | |
static TimeSpan | GetPollingTime (ValueNode node) |
Gets the polling time on the given node . More... | |
static void | SetPollingTime (this ValueNode node, TimeSpan value) |
Sets the polling time on the given node . More... | |
static AccessMode | GetAccessModeOn< TNode, TValue > (this IHasValueConfig< TNode, TValue > node) |
Gets the access mode on the given node . More... | |
static CacheMode | GetCacheModeOn< TNode, TValue > (this IHasValueConfig< TNode, TValue > node) |
Gets the cache mode on the given node . More... | |
static TimeSpan | GetPollingTimeOn< TNode, TValue > (this IHasValueConfig< TNode, TValue > node) |
Gets the polling time on the given node . More... | |
Extension methods for register implementation.
|
static |
Gets the access mode from the given node .
node | Node to get the access mode from. |
|
static |
Gets the access mode on the given node .
The value configuration is followed until a register has been found and from that the access mode is returned.
If no register node is found, AccessMode.RW is returned.
node | The node to start query on. |
TNode | : | ValueNode |
|
static |
Reads the register address from the given node .
node | Node to get value from. |
Gets the current cache mode of the given register node .
node | Register node to get cache mode from. |
|
static |
Gets the cache mode on the given node .
The value configuration is followed until a register has been found and from that the access mode is returned.
If no register node is found, CacheMode.NoCache is returned.
node | The node to start query on. |
TNode | : | ValueNode |
|
static |
Gets the register length in bytes from the given node .
node | Node to get value from. |
|
static |
Gets the polling time on the given node .
node | Node to get polling time from. |
|
static |
Gets the polling time on the given node .
The value configuration is followed until a register has been found and from that the access mode is returned.
If no register node is found, TimeSpan.Zero is returned.
node | The node to start query on. |
TNode | : | ValueNode |
|
static |
Sets the access mode on the given node .
node | Node to set the access mode on. |
value | New access mode to set. |
Sets the cache mode on the given node .
node | Node to set the cache mode on. |
value | New cache mode to set. |