Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/sensor/ti/tmag5273/
Dtmag5273.c119 uint8_t *device_status) in tmag5273_check_device_status() argument
124 *device_status = 0; in tmag5273_check_device_status()
128 retval = i2c_reg_read_byte_dt(&drv_cfg->i2c, TMAG5273_REG_CONV_STATUS, device_status); in tmag5273_check_device_status()
134 if ((*device_status & TMAG5273_DIAG_STATUS_MSK) != TMAG5273_DIAG_FAIL) { in tmag5273_check_device_status()
136 *device_status = 0; in tmag5273_check_device_status()
140 retval = i2c_reg_read_byte_dt(&drv_cfg->i2c, TMAG5273_REG_DEVICE_STATUS, device_status); in tmag5273_check_device_status()
146 if ((*device_status & TMAG5273_VCC_UV_ER_MSK) == TMAG5273_VCC_UV_ERR) { in tmag5273_check_device_status()
151 ((*device_status & TMAG5273_OTP_CRC_ER_MSK) == TMAG5273_OTP_CRC_ERR)) { in tmag5273_check_device_status()
155 if ((*device_status & TMAG5273_INT_ER_MSK) == TMAG5273_INT_ERR) { in tmag5273_check_device_status()
159 if ((*device_status & TMAG5273_OSC_ER_MSK) == TMAG5273_OSC_ERR) { in tmag5273_check_device_status()