rodbus (.NET API) 1.6.0-RC1
Loading...
Searching...
No Matches
rodbus.BitValue Class Reference

Bit value and its address More...

Public Member Functions

BitValue WithIndex (ushort value)
 Address of the bit More...
 
BitValue WithValue (bool value)
 Value of the bit More...
 
 BitValue (ushort index, bool value)
 Fully construct BitValue specifying the value of each field More...
 

Public Attributes

ushort Index
 Address of the bit More...
 
bool Value
 Value of the bit More...
 

Detailed Description

Bit value and its address

Modbus messages that carry a block of values (read responses and write multiple requests) encode a starting address and the values in address order, but not a per-value address. The library computes the index from the starting address and the value's position as a convenience.

Constructor & Destructor Documentation

◆ BitValue()

rodbus.BitValue.BitValue ( ushort  index,
bool  value 
)
inline

Fully construct BitValue specifying the value of each field

Parameters
indexAddress of the bit
valueValue of the bit

Member Function Documentation

◆ WithIndex()

BitValue rodbus.BitValue.WithIndex ( ushort  value)
inline

Address of the bit

◆ WithValue()

BitValue rodbus.BitValue.WithValue ( bool  value)
inline

Value of the bit

Member Data Documentation

◆ Index

ushort rodbus.BitValue.Index

Address of the bit

◆ Value

bool rodbus.BitValue.Value

Value of the bit


The documentation for this class was generated from the following file: