Lines Matching +full:ds2482 +full:- +full:800
4 * SPDX-License-Identifier: Apache-2.0
7 #include "w1_ds2482-800.h"
17 LOG_MODULE_DECLARE(ds2482, CONFIG_W1_LOG_LEVEL);
34 const struct ds2482_config *config = dev->config; in ds2482_reset_bus()
36 return ds2482_84_reset_bus(&config->i2c_spec); in ds2482_reset_bus()
41 const struct ds2482_config *config = dev->config; in ds2482_read_bit()
43 return ds2482_84_read_bit(&config->i2c_spec); in ds2482_read_bit()
48 const struct ds2482_config *config = dev->config; in ds2482_write_bit()
50 return ds2482_84_write_bit(&config->i2c_spec, bit); in ds2482_write_bit()
55 const struct ds2482_config *config = dev->config; in ds2482_read_byte()
57 return ds2482_84_read_byte(&config->i2c_spec); in ds2482_read_byte()
62 const struct ds2482_config *config = dev->config; in ds2482_write_byte()
64 return ds2482_84_write_byte(&config->i2c_spec, byte); in ds2482_write_byte()
69 const struct ds2482_config *config = dev->config; in ds2482_configure()
71 uint8_t reg_config = config->reg_config; in ds2482_configure()
81 return -EINVAL; in ds2482_configure()
84 return ds2482_84_write_config(&config->i2c_spec, reg_config); in ds2482_configure()
103 return (reg == channel_rb) ? 0 : -EIO; in ds2482_set_channel()
110 const struct ds2482_config *config = dev->config; in ds2482_change_bus_lock()
112 ret = ds2482_change_bus_lock_impl(config->parent, lock); in ds2482_change_bus_lock()
125 ret = ds2482_set_channel(&config->i2c_spec, config->reg_channel, config->reg_channel_rb); in ds2482_change_bus_lock()
133 ret = ds2482_84_write_config(&config->i2c_spec, config->reg_config); in ds2482_change_bus_lock()
143 const struct ds2482_config *config = dev->config; in ds2482_init()
145 if (!device_is_ready(config->parent)) { in ds2482_init()
146 return -ENODEV; in ds2482_init()