value |= ov<<LIS3DH_ODR_BIT;if( !LIS3DH_WriteReg(LIS3DH_CTRL_REG1, value) )returnMEMS_ERROR;if( !LIS3DH_ReadReg(LIS3DH_CTRL_REG1, &value1) )returnMEMS_ERROR;returnMEMS_SUCCESS; } 开发者ID:PascalSI,项目名称:ampm_car_tracker,代码行数:22,代码来源:lis3dh_driver.c 示例3: LIS3...
LIS3DH_ReadReg(LIS3DH_CTRL_REG1, &value) )returnMEMS_ERROR;if( !LIS3DH_ReadReg(LIS3DH_CTRL_REG4, &value2) )returnMEMS_ERROR;if((value &0xF0)=