mpl3115.c
int	mpl3115ReadHdlr(epw_t * psEWP) {
	IF_SYSTIMER_START(debugTIMING, stMPL3115);
	int iRV = mpl3115ReadReg(mpl3115STATUS, (uint8_t *) &sMPL3115.Reg, 6);
	IF_SYSTIMER_STOP(debugTIMING, stMPL3115);
	IF_P(debugCONVERT, "mpl3115  [ %-`B ]\n", 6, &sMPL3115.Reg);
	x64_t X64;
	// Convert & update pressure/altitude sensor
	X64.x32[0].f32 = (float) (sMPL3115.Reg.OUT_P_MSB << 16 | sMPL3115.Reg.OUT_P_CSB << 8 | sMPL3115.Reg.OUT_P_LSB) / 64.0;
	vCV_SetValue(&table_work[URI_MPL3115_VAL].var, X64);
	// convert& update the temperature sensor
	X64.x32[0].f32 = (float) (sMPL3115.Reg.OUT_T_MSB << 8 | sMPL3115.Reg.OUT_T_LSB) / 256.0;
	vCV_SetValue(&table_work[URI_MPL3115_TMP].var, X64);
	return iRV;
}
/**
 * @brief	simply read current values, expected it to be new/valid
 * @param 	pointer to endpoint to be read
 */
@brief       simply read current values, expected it to be new/valid
@param       pointer to endpoint to be read
@brief simply read current values expected it to be new / valid @param pointer to endpoint to be read
int	mpl3115ReadHdlr(epw_t * psEWP) {
	IF_SYSTIMER_START(debugTIMING, stMPL3115);
	int iRV = mpl3115ReadReg(mpl3115STATUS, (uint8_t *) &sMPL3115.Reg, 6);
	IF_SYSTIMER_STOP(debugTIMING, stMPL3115);
	IF_P(debugCONVERT, "mpl3115  [ %-`B ]\n", 6, &sMPL3115.Reg);
	x64_t X64;
	X64.x32[0].f32 = (float) (sMPL3115.Reg.OUT_P_MSB << 16 | sMPL3115.Reg.OUT_P_CSB << 8 | sMPL3115.Reg.OUT_P_LSB) / 64.0;
	vCV_SetValue(&table_work[URI_MPL3115_VAL].var, X64);
	X64.x32[0].f32 = (float) (sMPL3115.Reg.OUT_T_MSB << 8 | sMPL3115.Reg.OUT_T_LSB) / 256.0;
	vCV_SetValue(&table_work[URI_MPL3115_TMP].var, X64);
	return iRV;
}
int mpl3115ReadHdlr ( epw_t * psEWP ) { IF_SYSTIMER_START ( debugTIMING , stMPL3115 ) ; int iRV = mpl3115ReadReg ( mpl3115STATUS , ( uint8_t * ) & sMPL3115 . Reg , 6 ) ; IF_SYSTIMER_STOP ( debugTIMING , stMPL3115 ) ; IF_P ( debugCONVERT , " \n " , 6 , & sMPL3115 . Reg ) ; x64_t X64 ; X64 . x32 [ 0 ] . f32 = ( float ) ( sMPL3115 . Reg . OUT_P_MSB << 16 | sMPL3115 . Reg . OUT_P_CSB << 8 | sMPL3115 . Reg . OUT_P_LSB ) / 64.0 ; vCV_SetValue ( & table_work [ URI_MPL3115_VAL ] . var , X64 ) ; X64 . x32 [ 0 ] . f32 = ( float ) ( sMPL3115 . Reg . OUT_T_MSB << 8 | sMPL3115 . Reg . OUT_T_LSB ) / 256.0 ; vCV_SetValue ( & table_work [ URI_MPL3115_TMP ] . var , X64 ) ; return iRV ; }
@brief       simply read current values, expected it to be new/valid
 @param       pointer to endpoint to be read
@brief simply read current values expected it to be new / valid @param pointer to endpoint to be read
// Convert & update pressure/altitude sensor // convert& update the temperature sensor