ModbusStatusRegister class

This register type converts an Uint16 device value into a ModbusStatus.

Inheritance

Constructors

ModbusStatusRegister({required String name, required int address, required ModbusElementType type, String description = "", dynamic onUpdate(ModbusElement self)?, required List<ModbusStatus> statusValues, ModbusStatus? defaultStatus})

Properties

address int
getter/setter pairinherited
byteCount int
finalinherited
defaultStatus ModbusStatus?
final
description String
finalinherited
endianness ModbusEndianness
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
onUpdate → dynamic Function(ModbusElement self)?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusValues List<ModbusStatus>
final
type ModbusElementType
finalinherited
value ModbusStatus?
getter/setter pairinherited

Methods

getMultipleWriteRequest(Uint8List bytes, {int? unitId, Duration? responseTimeout, ModbusEndianness? endianness}) ModbusWriteRequest
Gets a write request from multiple register elements.
inherited
getReadRequest({int? unitId, Duration? responseTimeout, ModbusEndianness? endianness}) ModbusReadRequest
Gets a read request from this element
inherited
getWriteRequest(dynamic value, {bool rawValue = false, int? unitId, Duration? responseTimeout, ModbusEndianness? endianness}) ModbusWriteRequest
Gets a write request from this register element. value is set to the element once request is successfully completed. If rawValue is true then the integer value is written as it is without any value or type conversion.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValueFromBytes(Uint8List rawValues) ModbusStatus?
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited