Searched refs:fxos_handle (Results 1 – 2 of 2) sorted by relevance
/hal_nxp-3.5.0/mcux/mcux-sdk/components/fxos8700cq/ |
D | fsl_fxos.c | 14 status_t FXOS_Init(fxos_handle_t *fxos_handle, fxos_config_t *config) in FXOS_Init() argument 16 assert(fxos_handle); in FXOS_Init() 24 fxos_handle->I2C_SendFunc = config->I2C_SendFunc; in FXOS_Init() 25 fxos_handle->I2C_ReceiveFunc = config->I2C_ReceiveFunc; in FXOS_Init() 27 fxos_handle->slaveAddress = config->slaveAddress; in FXOS_Init() 29 if (FXOS_ReadReg(fxos_handle, WHO_AM_I_REG, tmp, 1) != kStatus_Success) in FXOS_Init() 41 if (FXOS_ReadReg(fxos_handle, CTRL_REG1, tmp, 1) != kStatus_Success) in FXOS_Init() 46 if (FXOS_WriteReg(fxos_handle, CTRL_REG1, tmp[0] & (uint8_t)~ACTIVE_MASK) != kStatus_Success) in FXOS_Init() 52 if (FXOS_ReadReg(fxos_handle, CTRL_REG1, tmp, 1) != kStatus_Success) in FXOS_Init() 62 if (FXOS_WriteReg(fxos_handle, F_SETUP_REG, F_MODE_DISABLED) != kStatus_Success) in FXOS_Init() [all …]
|
D | fsl_fxos.h | 731 status_t FXOS_Init(fxos_handle_t *fxos_handle, fxos_config_t *config); 741 status_t FXOS_ReadSensorData(fxos_handle_t *fxos_handle, fxos_data_t *sensorData);
|