Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
CRC16 Implementation Documentation #330
Comments in the protocol implementation suggest that a standard CRC16 calculation is being used with the polynomial
However, running the commented code produces
which is a different result than what the referenced online calculator generates when using the the same polynomial and initial value:
It probably doesn't make sense to change the algorithm at this point, but if it really is different, it should be documented so that driver implementers know that they have to reproduce this specific algorithm rather than using an existing CRC library.
It would also be handy to have a few test cases to make it easier to confirm correct implementation.