ModbusUint16Register class

An unsigned 16 bit register

Inheritance

Constructors

ModbusUint16Register({required String name, required int address, required ModbusElementType type, String description = "", dynamic onUpdate(ModbusElement self)?, String uom = "", double multiplier = 1, double offset = 0, int viewDecimalPlaces = 2, ModbusEndianness endianness = ModbusEndianness.ABCD})

Properties

address int
getter/setter pairinherited
byteCount int
finalinherited
description String
finalinherited
endianness ModbusEndianness
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
multiplier double
finalinherited
name String
finalinherited
offset double
finalinherited
onUpdate → dynamic Function(ModbusElement self)?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ModbusElementType
finalinherited
uom String
finalinherited
value num?
getter/setter pairinherited
viewDecimalPlaces int
finalinherited

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) num?
inherited
toString() String
A string representation of this object.
inherited

Operators

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