RegisterTypeConverter<T> class abstract

Type converter that only supports reading / writing to Modbus registers with 16-bit sizes, namely input registers and holding registers.

Inheritance
Implementers

Constructors

RegisterTypeConverter()
const
RegisterTypeConverter.from({required ReadCallback<T, Uint16List> readCallback, WriteCallback<T, int, Uint16List>? writeCallback})
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canRead(Type type, Register registerType, int address) bool
override
canWrite(Type type, int address) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(RawReadCallback<Uint16List> readRaw) Future<T>
readFromClient(ModbusClient client, Register registerType, int address) Future<T>
override
toString() String
A string representation of this object.
inherited
write(T value, RawWriteCallback<int> writeSingle, RawWriteCallback<Uint16List> writeMultiple) Future<void>
writeToClient(ModbusClient client, int address, T value) Future<void>
override

Operators

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