I am trying to interact with a third-party system, and they provided a sample code to calculate the CRC value when sending text data.
The C code provided by the provider is as follows:
#define CRCRES 0xf0b8 /* residue for good verify */
I copied this code and put the sample program in C. The test_crc method does not calculate CRC as 470f (its calculation as DD7A).
I hope someone can verify that this code is not working, as the seller says it should or helped me return test_crc to the correct value.
Thanks for the help.
source share