AnsweredAssumed Answered

TPMS-measurement

Question asked by 晓辉 王 on Feb 12, 2017
Latest reply on Aug 12, 2018 by Divyank Shekhar

I am now have some issues about 87000. following is  the demo code .

UINT8 Measurement(void)
{
UINT8 u8Status = 0;

u8Status = TPMS_READ_VOLTAGE(gu16UUMA);
u8Status |= TPMS_COMP_VOLTAGE(&u8CompVol,gu16UUMA);
u8Status |= TPMS_READ_TEMPERATURE(gu16UUMA);
u8Status |= TPMS_COMP_TEMPERATURE(&u8CompTemp,gu16UUMA);
u8Status |= TPMS_READ_PRESSURE(gu16UUMA, 1u);
if( TPMS_COMP_PRESSURE(&u16CompPress,gu16UUMA))   
{
gu16UUMA[UUMA_PRESSURE] = 0xFFFF;
}
u8Status |=TPMS_READ_ACCEL_XZ(gu16UUMA,1,0,7,7);
if( TPMS_COMP_ACCEL_XZ(u16CompAccelXZ,gu16UUMA))
{gu16UUMA[UUMA_Z] = 0xFFFF;
}
tRDEData.u8ElapsedTime = 1u;

return u8Status;
}

what is the meaning 

 u8Status |= TPMS_READ_PRESSURE(gu16UUMA, 1u);
if( TPMS_COMP_PRESSURE(&u16CompPress,gu16UUMA))   
{    gu16UUMA[UUMA_PRESSURE] = 0xFFFF;    }

could I use the following code 

 u8Status |= TPMS_READ_PRESSURE(gu16UUMA, 1u);

 u8Status |= TPMS_COMP_PRESSURE(&u16CompPress,gu16UUMA);

Outcomes