Lines Matching full:rom

350  * @name 1-Wire ROM Commands
356 * providing their ROM code.
362 * providing its ROM code.
373 * This command allows the bus master to read the ROM code from a single slave
381 * This command allows the bus master to discover the addresses (i.e., ROM
455 /** Unique 1-Wire ROM. */
456 struct w1_rom rom; member
468 * @param rom found The ROM of the found slave.
471 typedef void (*w1_search_callback_t)(struct w1_rom rom, void *user_data);
474 * @brief Read Peripheral 64-bit ROM.
477 * 64-bit ROM without using the Search ROM procedure.
480 * Otherwise data collisions occur and a faulty ROM is read.
483 * @param[out] rom Pointer to the ROM structure.
490 int w1_read_rom(const struct device *dev, struct w1_rom *rom);
493 * @brief Select a specific slave by broadcasting a selected ROM.
496 * identified by its unique ROM, such that the next command will target only
500 * Skip ROM command can be issued.
515 * @brief Select the slave last addressed with a Match ROM or Search ROM command.
518 * device that was already addressed using a Match ROM or Search ROM command.
529 * @brief Select all slaves regardless of ROM.
533 * to avoid the overhead of the Match ROM command.
547 * Match ROM command.
559 * @brief Write then read data from the 1-Wire slave with matching ROM.
561 * This routine uses w1_reset_select to select the given ROM.
654 * @param[in] rom Pointer to the ROM struct.
656 * @retval rom64 The ROM converted to an unsigned integer in endianness.
658 static inline uint64_t w1_rom_to_uint64(const struct w1_rom *rom) in w1_rom_to_uint64() argument
660 return sys_get_be64((uint8_t *)rom); in w1_rom_to_uint64()
666 * @param rom64 Unsigned 64 bit integer representing the ROM in host endianness.
667 * @param[out] rom The ROM struct pointer.
669 static inline void w1_uint64_to_rom(const uint64_t rom64, struct w1_rom *rom) in w1_uint64_to_rom() argument
671 sys_put_be64(rom64, (uint8_t *)rom); in w1_uint64_to_rom()
679 * This CRC is used to check the correctness of the unique 56-bit ROM.