issues
search
paulscherrerinstitute
/
StreamDevice
EPICS Driver for message based I/O
GNU General Public License v3.0
28
stars
42
forks
source link
Improve checksum converters
#36
Open
dirk-zimoch
opened
5 years ago
dirk-zimoch
commented
5 years ago
Allow any type of CRC sum by simply giving the polynom code, init and xor value. Calculate lookup table at init instead of having it hard coded.
Allow any type of formatting of the result by specifying a format like %02x, %03d, etc.
Examples: %<crc 0x1021,0x1D0F,0xFFFF,%02X> %<xor %03d>
Examples: %<crc 0x1021,0x1D0F,0xFFFF,%02X> %<xor %03d>