Closed RobTillaart closed 2 years ago
now you have to do
CRC16 crc; crc.setPolynome(0x1021); crc.setStartXOR(0xFFFF); crc.setEndXOR(0xFFFF); crc.setReverseIn(true); crc.setReverseOut(true);
it would be easier if one had a constructor like
CRC16 crc(0x1021, 0xFFFF, 0xFFFF, true, true);
one side effect is that a call to reset() would overrule the initial settings with sort of "factory defaults". But that is also true when settings are changed, so no show stopper imho.
Create tests ?
now you have to do
it would be easier if one had a constructor like