RegisterDefinition constructor

const RegisterDefinition({
  1. required String name,
  2. required int address,
  3. required RegisterType type,
  4. DataType dataType = DataType.uint16,
  5. int? quantity,
  6. ByteOrder byteOrder = ByteOrder.bigEndian,
  7. double? multiplier,
  8. double? offset,
  9. String? unit,
  10. String? description,
  11. bool readOnly = false,
})

Implementation

const RegisterDefinition({
  required this.name,
  required this.address,
  required this.type,
  this.dataType = DataType.uint16,
  this.quantity,
  this.byteOrder = ByteOrder.bigEndian,
  this.multiplier,
  this.offset,
  this.unit,
  this.description,
  this.readOnly = false,
});