SMBus将Linearformat rawdata转换成real value

int convert_linear_format_rawdata_to_realval(short rawdata)
{
    int e, m;
    int val;

    e = ((short)(rawdata))>>11;
    m = ((short)(rawdata<<5))>>5;

    val = (e<0)?(m>>-e):(m<

你可能感兴趣的:(SMBus将Linearformat rawdata转换成real value)