Lines Matching refs:result

23     status_t result = kStatus_Success;  in ICM42688P_WriteReg()  local
24result = handle->Sensor_WriteTransfer(handle->sensorAddress, regAddress, regData, dataSiz… in ICM42688P_WriteReg()
26 return (result == kStatus_Success) ? result : kStatus_Fail; in ICM42688P_WriteReg()
31 status_t result = kStatus_Success; in ICM42688P_ReadReg() local
32result = handle->Sensor_ReadTransfer(handle->sensorAddress, regAddress, regData, dataSize… in ICM42688P_ReadReg()
34 return (result == kStatus_Success) ? result : kStatus_Fail; in ICM42688P_ReadReg()
48 status_t result = kStatus_Success; in ICM42688P_Init() local
55 result = ICM42688P_WriteReg(handle, BANK_SEL, &bankSel, 1U); in ICM42688P_Init()
56 if (result != kStatus_Success) in ICM42688P_Init()
58 return result; in ICM42688P_Init()
60 result = ICM42688P_WriteReg(handle, DEVICE_CONFIG, &resetVal, 1U); in ICM42688P_Init()
61 if (result != kStatus_Success) in ICM42688P_Init()
63 return result; in ICM42688P_Init()
68 return result; in ICM42688P_Init()
77 status_t result = kStatus_Success; in ICM42688P_EnableSensors() local
79 result = ICM42688P_ReadReg(handle, WHO_AM_I, &whoamiVal, 1U); in ICM42688P_EnableSensors()
80 if (result != kStatus_Success) in ICM42688P_EnableSensors()
82 return result; in ICM42688P_EnableSensors()
86 result = ICM42688P_WriteReg(handle, PWR_MGMT0, &sensorConfig, 1U); in ICM42688P_EnableSensors()
87 if (result != kStatus_Success) in ICM42688P_EnableSensors()
89 return result; in ICM42688P_EnableSensors()
92 result = ICM42688P_WriteReg(handle, FIFO_CONFIG, &fifoInitVal, 1U); in ICM42688P_EnableSensors()
93 if (result != kStatus_Success) in ICM42688P_EnableSensors()
95 return result; in ICM42688P_EnableSensors()
106 status_t result = kStatus_Success; in ICM42688P_ConfigureTapDetectIBI() local
108 result = ICM42688P_WriteReg(handle, APEX_CONFIG0, &confData, 1U); in ICM42688P_ConfigureTapDetectIBI()
109 if (result != kStatus_Success) in ICM42688P_ConfigureTapDetectIBI()
111 return result; in ICM42688P_ConfigureTapDetectIBI()
114 result = ICM42688P_WriteReg(handle, BANK_SEL, &bankSel, 1U); in ICM42688P_ConfigureTapDetectIBI()
115 if (result != kStatus_Success) in ICM42688P_ConfigureTapDetectIBI()
117 return result; in ICM42688P_ConfigureTapDetectIBI()
125 status_t result = kStatus_Success; in ICM42688P_ReadSensorData() local
128 result = ICM42688P_ReadReg(handle, FIFO_DATA, fifoData, 16U); in ICM42688P_ReadSensorData()
129 if (result == kStatus_Success) in ICM42688P_ReadSensorData()
141 result = kStatus_NoData; in ICM42688P_ReadSensorData()
144 return result; in ICM42688P_ReadSensorData()