Matlab Simulink/LQ_Target_1500S_V4_0_grt_Output/LQ_ODK/src_odk_helpers/ODK_CpuReadData.cpp
ODK_INT8 CODK_CpuReadData::GetBCD(const ODK_UINT8 value) const
{
    if ((value & 0x0F) > 9) return -1;
    if (((value >> 4) & 0x0F) > 9) return -1;

    return ((value >> 4) * 10) + (value & 0x0F);
}
// return bcd number of value, or -1 when value is no BCD number
return bcd number of value, or -1 when value is no BCD number
return bcd number of value or - 1 when value is no BCD number
ODK_INT8 CODK_CpuReadData::GetBCD(const ODK_UINT8 value) const
{
    if ((value & 0x0F) > 9) return -1;
    if (((value >> 4) & 0x0F) > 9) return -1;
    return ((value >> 4) * 10) + (value & 0x0F);
}
ODK_INT8 CODK_CpuReadData :: GetBCD ( const ODK_UINT8 value ) const { if ( ( value & 0x0F ) > 9 ) return -1 ; if ( ( ( value >> 4 ) & 0x0F ) > 9 ) return -1 ; return ( ( value >> 4 ) * 10 ) + ( value & 0x0F ) ; }
return bcd number of value, or -1 when value is no BCD number
return bcd number of value or - 1 when value is no BCD number