Lines Matching +full:one +full:- +full:wire
4 * SPDX-License-Identifier: Apache-2.0
8 * @brief 1-Wire network related functions.
27 * This function searches the next 1-Wire slave on the bus.
28 * It sets the found ROM and the last discrepancy in case more than one
30 * In case only one slave took part in the search, the discrepancy is set to
36 * @see https://www.analog.com/media/en/technical-documentation/app-notes/1wire-search-algorithm.pdf
41 * their own addresses' bit. This allows the master to branch through 64-bit
47 * bytes (big-endian) stored in rom_inv_64 are in inverse byte order.
62 * @retval -errno Negative error code in case of 1-wire read/write error.
124 (*rom_inv_64 & BIT64(id_bit_nr - 1)))) { in search_slave()
126 * - id_bit_nr > last_discrepancy: in search_slave()
128 * - id_bit_nr < last_discrepancy: in search_slave()
135 * - id_bit_nr == last_discrepancy: in search_slave()
136 * 1-path already done, therefore go 0 path in search_slave()
137 * - id_bit_nr < last_discrepancy: in search_slave()
151 *rom_inv_64 &= ~BIT64(id_bit_nr - 1); in search_slave()
152 *rom_inv_64 |= last_id_bit ? BIT64(id_bit_nr - 1) : 0; in search_slave()
185 * Only big-endian targets need to swap, such that struct's in z_impl_w1_search_bus()
186 * bytes are stored in big-endian byte order. in z_impl_w1_search_bus()
213 ret = -ENODEV; in w1_read_rom()
229 ret = -EIO; in w1_read_rom()
242 if (!config->overdrive) { in match_rom()
244 return -EIO; in match_rom()
250 return -ENODEV; in match_rom()
256 cmd = config->overdrive ? W1_CMD_OVERDRIVE_MATCH_ROM : W1_CMD_MATCH_ROM; in match_rom()
261 ret = w1_write_block(dev, (uint8_t *)&config->rom, 8); in match_rom()
266 if (config->overdrive) { in match_rom()
268 return -EIO; in match_rom()
292 ret = -ENODEV; in w1_resume_command()
310 if (!config->overdrive) { in skip_rom()
312 return -EIO; in skip_rom()
318 return -ENODEV; in skip_rom()
324 cmd = config->overdrive ? W1_CMD_OVERDRIVE_SKIP_ROM : W1_CMD_SKIP_ROM; in skip_rom()
330 if (config->overdrive) { in skip_rom()
332 return -EIO; in skip_rom()
385 return -EIO; in write_read()