Lines Matching +full:i2c +full:- +full:errors
5 * SPDX-License-Identifier: Apache-2.0
14 #include <zephyr/drivers/i2c.h>
27 struct i2c_dt_spec i2c; member
34 * -EIO for I/O and checksum errors
38 struct si7055_data *si_data = dev->data; in si7055_get_temperature()
39 const struct si7055_config *config = dev->config; in si7055_get_temperature()
47 retval = i2c_burst_read_dt(&config->i2c, SI7055_MEAS_TEMP_MASTER_MODE, in si7055_get_temperature()
51 * https://www.silabs.com/documents/public/data-sheets/Si7050-1-3-4-5-A20.pdf in si7055_get_temperature()
59 return(-EIO); in si7055_get_temperature()
62 si_data->temperature = (temp[SI7055_TEMPERATURE_DATA_BYTE_0] in si7055_get_temperature()
90 * @return -ENOTSUP for unsupported channels
96 struct si7055_data *si_data = dev->data; in si7055_channel_get()
99 * https://www.silabs.com/documents/public/data-sheets/Si7050-1-3-4-5-A20.pdf in si7055_channel_get()
105 (int32_t)si_data->temperature) / in si7055_channel_get()
106 (__UINT16_MAX__ + 1)) - in si7055_channel_get()
110 val->val1 = temp_ucelcius / SI7055_DIVIDER; in si7055_channel_get()
111 val->val2 = temp_ucelcius % SI7055_DIVIDER; in si7055_channel_get()
114 val->val1, val->val2); in si7055_channel_get()
118 return -ENOTSUP; in si7055_channel_get()
135 const struct si7055_config *config = dev->config; in si7055_init()
137 if (!device_is_ready(config->i2c.bus)) { in si7055_init()
139 return -ENODEV; in si7055_init()
151 .i2c = I2C_DT_SPEC_INST_GET(inst), \