Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve checksum converters #36

Open
dirk-zimoch opened this issue Apr 29, 2019 · 0 comments
Open

Improve checksum converters #36

dirk-zimoch opened this issue Apr 29, 2019 · 0 comments

Comments

@dirk-zimoch
Copy link
Member

  • 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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant