calculateCode method
override
Generates the code to be provided by the transmitter, to be implemented by implementations.
Implementation
@override
Logic calculateCode() {
final payload = data.packed;
final matrix = _hsiaoMatrix(data.width, parityWidth);
final parity = BinaryLinearTransform(
payload,
matrix: matrix,
name: 'hsiaoParityTransform',
).result;
final overall = ParityTransmitter([parity, payload].concat()).code;
return [overall, parity].concat();
}