How to calculate CRC16 checksum for iButton
I have made small iButton project. I want to calculate CRC-16 checksum in which polynomial is x^16 + x^15 + x^2 + 1. If I use 'writePagePacket' function for writing data on iButton then it gets automatically calculated, how will I get CRC checksum using 'write' function only?
Calculation of CRC 16 checksum
Thanks for replying me.
I tried the given code, but I am not able to write it in C#.Net. As I don't know the varaible type of CRC16. Can you please explain me?