You are here: Forum Home → ANT Developers Forums → ANT+ FIT Forum Has Moved → Thread
FIT_UINT16 FitCRC_Calc16(const volatile void *data, FIT_UINT8 size)
{
FIT_UINT16 crc = 0;
FIT_BYTE *data_ptr = (FIT_BYTE *)data;
while (size)
{
crc = FitCRC_Get16(crc, *data_ptr);
data_ptr++;
size--;
}
return crc;
}
FIT_UINT8 Fit_GetMesgSize(FIT_UINT16 global_mesg_num);
FIT_UINT8 Fit_GetFieldOffset(const FIT_MESG_DEF *mesg_def, FIT_UINT8 field_def_num);