mpl3115.c
int	mpl3115Identify(i2c_di_t * psI2C_DI) {
	psI2C_DI->TRXmS	= 50;
	psI2C_DI->CLKuS = 400;
	psI2C_DI->Test = 1;
	sMPL3115.psI2C = psI2C_DI;
	int iRV = mpl3115ReadReg(mpl3115WHOAMI, &sMPL3115.Reg.WHO_AM_I, 1);
	if ((iRV == erSUCCESS) && (sMPL3115.Reg.WHO_AM_I == 0xC4)) {
		psI2C_DI->Type		= i2cDEV_MPL3115;
		psI2C_DI->Speed		= i2cSPEED_400;
		psI2C_DI->DevIdx 	= 0;
	}
	psI2C_DI->Test = 0;
	return iRV ;
}
/**
 * device reset+register reads to ascertain exact device type
 * @return	erSUCCESS if supported device was detected, if not erFAILURE
 */
device reset+register reads to ascertain exact device type
@return      erSUCCESS if supported device was detected, if not erFAILURE
device reset + register reads to ascertain exact device type @return erSUCCESS if supported device was detected if not erFAILURE
int	mpl3115Identify(i2c_di_t * psI2C_DI) {
	psI2C_DI->TRXmS	= 50;
	psI2C_DI->CLKuS = 400;
	psI2C_DI->Test = 1;
	sMPL3115.psI2C = psI2C_DI;
	int iRV = mpl3115ReadReg(mpl3115WHOAMI, &sMPL3115.Reg.WHO_AM_I, 1);
	if ((iRV == erSUCCESS) && (sMPL3115.Reg.WHO_AM_I == 0xC4)) {
		psI2C_DI->Type		= i2cDEV_MPL3115;
		psI2C_DI->Speed		= i2cSPEED_400;
		psI2C_DI->DevIdx 	= 0;
	}
	psI2C_DI->Test = 0;
	return iRV ;
}
int mpl3115Identify ( i2c_di_t * psI2C_DI ) { psI2C_DI -> TRXmS = 50 ; psI2C_DI -> CLKuS = 400 ; psI2C_DI -> Test = 1 ; sMPL3115 . psI2C = psI2C_DI ; int iRV = mpl3115ReadReg ( mpl3115WHOAMI , & sMPL3115 . Reg . WHO_AM_I , 1 ) ; if ( ( iRV == erSUCCESS ) && ( sMPL3115 . Reg . WHO_AM_I == 0xC4 ) ) { psI2C_DI -> Type = i2cDEV_MPL3115 ; psI2C_DI -> Speed = i2cSPEED_400 ; psI2C_DI -> DevIdx = 0 ; } psI2C_DI -> Test = 0 ; return iRV ; }
device reset+register reads to ascertain exact device type
 @return      erSUCCESS if supported device was detected, if not erFAILURE
device reset + register reads to ascertain exact device type @return erSUCCESS if supported device was detected if not erFAILURE