HammingEccTransmitter constructor

HammingEccTransmitter(
  1. Logic data, {
  2. String name = 'hamming_ecc_tx',
  3. HammingType hammingType = HammingType.sec,
})

Creates a transmission which includes a code that protects data with the specified hammingType.

Implementation

HammingEccTransmitter(super.data,
    {super.name = 'hamming_ecc_tx', this.hammingType = HammingType.sec})
    : super(
          definitionName: 'hamming_ecc_transmitter_${hammingType.name}',
          codeWidth:
              _parityBitsRequired(data.width) + hammingType._extraParityBits);