Searched refs:fxls_handle (Results 1 – 2 of 2) sorted by relevance
/hal_nxp-3.5.0/mcux/mcux-sdk/components/fxls8974cf/ |
D | fsl_fxls.c | 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() [all …]
|
D | fsl_fxls.h | 176 status_t FXLS_Init(fxls_handle_t *fxls_handle, fxls_config_t *config); 186 status_t FXLS_ReadAccelRawData(fxls_handle_t *fxls_handle, fxls_accel_raw_data_t *accelRawData); 196 status_t FXLS_ReadAccelData(fxls_handle_t *fxls_handle, fxls_accel_data_t *accelData);
|