DiscreteTypeConverter<T> class
abstract
Type converter that only supports reading / writing to Modbus registers with 1-bit discrete sizes, namely coils and discrete input.
- Inheritance
-
- Object
- TypeConverter<
T> - DiscreteTypeConverter
- Implementers
Constructors
- DiscreteTypeConverter()
-
const
-
DiscreteTypeConverter.from({required ReadCallback<
T, List< readCallback, WriteCallback<bool?> >T, bool, List< ? writeCallback})bool> > -
constfactory
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< List< readRaw) → Future<bool?> >T> -
readFromClient(
ModbusClient client, Register registerType, int address) → Future< T> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
T value, RawWriteCallback< bool> writeSingle, RawWriteCallback<List< writeMultiple) → Future<bool> >void> -
writeToClient(
ModbusClient client, int address, T value) → Future< void> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited