Home
last modified time | relevance | path

Searched refs:status (Results 1 – 9 of 9) sorted by relevance

/hal_wurthelektronik-latest/sensors/WeSensorsSDK/WSEN_HIDS_2525020210002_hal/
DWSEN_HIDS_2525020210002_hal.c120 int8_t status = WE_FAIL; in HIDS_Set_Measurement_Type() local
122 status = HIDS_WriteData(sensorInterface, &temp, 1); in HIDS_Set_Measurement_Type()
126 if (status != WE_SUCCESS) in HIDS_Set_Measurement_Type()
152 int8_t status= WE_FAIL; in HIDS_Sensor_Measure_Raw() local
156 status = HIDS_ReadData(sensorInterface, dataBytes, 6); in HIDS_Sensor_Measure_Raw()
157 if (status != WE_SUCCESS) in HIDS_Sensor_Measure_Raw()
162 status = HIDS_CheckCRC(&dataBytes[0], HIDS_WORD_SIZE, dataBytes[2]); in HIDS_Sensor_Measure_Raw()
163 if (status != WE_SUCCESS) in HIDS_Sensor_Measure_Raw()
168 status = HIDS_CheckCRC(&dataBytes[3], HIDS_WORD_SIZE, dataBytes[5]); in HIDS_Sensor_Measure_Raw()
169 if (status != WE_SUCCESS) in HIDS_Sensor_Measure_Raw()
[all …]
/hal_wurthelektronik-latest/sensors/
Dweplatform_i2c.c26 int status = 0; in WE_ReadReg_I2C() local
38 status = i2c_burst_read_dt(interface->handle, regAdr, data, numBytesToRead); in WE_ReadReg_I2C()
42 status = i2c_read_dt(interface->handle, data, numBytesToRead); in WE_ReadReg_I2C()
46 status = WE_FAIL; in WE_ReadReg_I2C()
51 status = -EIO; in WE_ReadReg_I2C()
54 return status == 0 ? WE_SUCCESS : WE_FAIL; in WE_ReadReg_I2C()
68 int status = 0; in WE_WriteReg_I2C() local
73 status = i2c_burst_write_dt(interface->handle, regAdr, data, numBytesToWrite); in WE_WriteReg_I2C()
77 status = i2c_write_dt(interface->handle, data, numBytesToWrite); in WE_WriteReg_I2C()
81 status = WE_FAIL; in WE_WriteReg_I2C()
[all …]
Dweplatform_spi.c26 int status = 0; in WE_ReadReg_SPI() local
43 status = spi_transceive_dt(interface->handle, &tx_buf_set, &rx_buf_set); in WE_ReadReg_SPI()
44 if (status != 0) { in WE_ReadReg_SPI()
50 status = -EIO; in WE_ReadReg_SPI()
53 return status == 0 ? WE_SUCCESS : WE_FAIL; in WE_ReadReg_SPI()
67 int status = 0; in WE_WriteReg_SPI() local
83 status = spi_write_dt(interface->handle, &tx_buf_set); in WE_WriteReg_SPI()
85 if (status != 0) { in WE_WriteReg_SPI()
91 status = -EIO; in WE_WriteReg_SPI()
94 return status == 0 ? WE_SUCCESS : WE_FAIL; in WE_WriteReg_SPI()
/hal_wurthelektronik-latest/sensors/WeSensorsSDK/WSEN_ISDS_2536030320001_hal/
DWSEN_ISDS_2536030320001_hal.c2895 …t8_t ISDS_getWakeUpEventRegister(WE_sensorInterface_t* sensorInterface, ISDS_wakeUpEvent_t *status) in ISDS_getWakeUpEventRegister() argument
2897 return ISDS_ReadReg(sensorInterface, ISDS_WAKE_UP_EVENT_REG, 1, (uint8_t *) status); in ISDS_getWakeUpEventRegister()
2908 ISDS_wakeUpEvent_t status; in ISDS_isWakeUpXEvent() local
2910 if (WE_FAIL == ISDS_ReadReg(sensorInterface, ISDS_WAKE_UP_EVENT_REG, 1, (uint8_t *) &status)) in ISDS_isWakeUpXEvent()
2915 *wakeUpX = (ISDS_state_t) status.wakeUpX; in ISDS_isWakeUpXEvent()
2928 ISDS_wakeUpEvent_t status; in ISDS_isWakeUpYEvent() local
2930 if (WE_FAIL == ISDS_ReadReg(sensorInterface, ISDS_WAKE_UP_EVENT_REG, 1, (uint8_t *) &status)) in ISDS_isWakeUpYEvent()
2935 *wakeUpY = (ISDS_state_t) status.wakeUpY; in ISDS_isWakeUpYEvent()
2948 ISDS_wakeUpEvent_t status; in ISDS_isWakeUpZEvent() local
2950 if (WE_FAIL == ISDS_ReadReg(sensorInterface, ISDS_WAKE_UP_EVENT_REG, 1, (uint8_t *) &status)) in ISDS_isWakeUpZEvent()
[all …]
DWSEN_ISDS_2536030320001_hal.h1085 …8_t ISDS_getWakeUpEventRegister(WE_sensorInterface_t* sensorInterface, ISDS_wakeUpEvent_t *status);
1094 int8_t ISDS_getTapEventRegister(WE_sensorInterface_t* sensorInterface, ISDS_tapEvent_t *status);
1104 int8_t ISDS_get6dEventRegister(WE_sensorInterface_t* sensorInterface, ISDS_6dEvent_t *status);
1115 int8_t ISDS_getStatusRegister(WE_sensorInterface_t* sensorInterface, ISDS_status_t *status);
1122 …int8_t ISDS_getFifoStatus(WE_sensorInterface_t* sensorInterface, ISDS_fifoStatus2_t *status, uint1…
1123 …8_t ISDS_getFifoStatus2Register(WE_sensorInterface_t* sensorInterface, ISDS_fifoStatus2_t *status);
/hal_wurthelektronik-latest/sensors/WeSensorsSDK/WSEN_TIDS_2521020222501_hal/
DWSEN_TIDS_2521020222501_hal.c431 int8_t TIDS_getStatusRegister(WE_sensorInterface_t* sensorInterface, TIDS_status_t *status) in TIDS_getStatusRegister() argument
433 return TIDS_ReadReg(sensorInterface, TIDS_STATUS_REG, 1, (uint8_t *) status); in TIDS_getStatusRegister()
DWSEN_TIDS_2521020222501_hal.h165 int8_t TIDS_getStatusRegister(WE_sensorInterface_t* sensorInterface, TIDS_status_t *status);
/hal_wurthelektronik-latest/sensors/WeSensorsSDK/WSEN_ITDS_2533020201601_hal/
DWSEN_ITDS_2533020201601_hal.h772 int8_t ITDS_getStatusRegister(WE_sensorInterface_t* sensorInterface, ITDS_status_t *status);
901 …8_t ITDS_getWakeUpEventRegister(WE_sensorInterface_t* sensorInterface, ITDS_wakeUpEvent_t *status);
909 int8_t ITDS_getTapEventRegister(WE_sensorInterface_t* sensorInterface, ITDS_tapEvent_t *status);
918 int8_t ITDS_get6dEventRegister(WE_sensorInterface_t* sensorInterface, ITDS_6dEvent_t *status);
DWSEN_ITDS_2533020201601_hal.c1541 int8_t ITDS_getStatusRegister(WE_sensorInterface_t* sensorInterface, ITDS_status_t *status) in ITDS_getStatusRegister() argument
1543 return ITDS_ReadReg(sensorInterface, ITDS_STATUS_REG, 1, (uint8_t *) status); in ITDS_getStatusRegister()
3383 …t8_t ITDS_getWakeUpEventRegister(WE_sensorInterface_t* sensorInterface, ITDS_wakeUpEvent_t *status) in ITDS_getWakeUpEventRegister() argument
3385 return ITDS_ReadReg(sensorInterface, ITDS_WAKE_UP_EVENT_REG, 1, (uint8_t *) status); in ITDS_getWakeUpEventRegister()
3497 int8_t ITDS_getTapEventRegister(WE_sensorInterface_t* sensorInterface, ITDS_tapEvent_t *status) in ITDS_getTapEventRegister() argument
3499 return ITDS_ReadReg(sensorInterface, ITDS_TAP_EVENT_REG, 1, (uint8_t *) status); in ITDS_getTapEventRegister()
3611 int8_t ITDS_get6dEventRegister(WE_sensorInterface_t* sensorInterface, ITDS_6dEvent_t *status) in ITDS_get6dEventRegister() argument
3613 return ITDS_ReadReg(sensorInterface, ITDS_6D_EVENT_REG, 1, (uint8_t *) status); in ITDS_get6dEventRegister()