Lines Matching refs:fxls_handle
13 status_t FXLS_Init(fxls_handle_t *fxls_handle, fxls_config_t *config) in FXLS_Init() argument
15 assert(fxls_handle != NULL); in FXLS_Init()
23 fxls_handle->I2C_SendFunc = config->I2C_SendFunc; in FXLS_Init()
24 fxls_handle->I2C_ReceiveFunc = config->I2C_ReceiveFunc; in FXLS_Init()
26 fxls_handle->slaveAddress = config->slaveAddress; in FXLS_Init()
28 if (FXLS_ReadReg(fxls_handle, WHO_AM_I_REG, tmp, 1) != kStatus_Success) in FXLS_Init()
39 if (FXLS_ReadReg(fxls_handle, SENS_CONFIG1_REG, tmp, 1) != kStatus_Success) in FXLS_Init()
44 …if (FXLS_WriteReg(fxls_handle, SENS_CONFIG1_REG, tmp[0] & (uint8_t)~ACTIVE_MASK) != kStatus_Succes… in FXLS_Init()
50 if (FXLS_ReadReg(fxls_handle, SENS_CONFIG1_REG, tmp, 1) != kStatus_Success) in FXLS_Init()
60 if (FXLS_WriteReg(fxls_handle, SENS_CONFIG2_REG, 0) != kStatus_Success) in FXLS_Init()
65 if (FXLS_WriteReg(fxls_handle, SENS_CONFIG4_REG, 0x1) != kStatus_Success) in FXLS_Init()
70 if (FXLS_WriteReg(fxls_handle, SENS_CONFIG1_REG, ACTIVE_MASK) != kStatus_Success) in FXLS_Init()
76 if (FXLS_ReadReg(fxls_handle, SENS_CONFIG1_REG, tmp, 1) != kStatus_Success) in FXLS_Init()
86 if (FXLS_WriteReg(fxls_handle, SENS_CONFIG4_REG, 0x5) != kStatus_Success) in FXLS_Init()
94 status_t FXLS_ReadAccelRawData(fxls_handle_t *fxls_handle, fxls_accel_raw_data_t *accelRawData) in FXLS_ReadAccelRawData() argument
98 if ((FXLS_ReadReg(fxls_handle, OUT_X_LSB_REG, (uint8_t *)accelRawData, 6)) != kStatus_Success) in FXLS_ReadAccelRawData()
106 status_t FXLS_ReadAccelData(fxls_handle_t *fxls_handle, fxls_accel_data_t *accelData) in FXLS_ReadAccelData() argument
111 if ((FXLS_ReadReg(fxls_handle, OUT_X_LSB_REG, tmp_buff, 6)) != kStatus_Success) in FXLS_ReadAccelData()