esp32-warm-water
esp32 based project for the control of a heating element based on temperature
Data Fields
OneWireBus_SearchState Struct Reference

Represents the state of a device search on the 1-Wire bus. More...

#include <owb.h>

Collaboration diagram for OneWireBus_SearchState:
Collaboration graph
[legend]

Data Fields

OneWireBus_ROMCode rom_code
 Device ROM code. More...
 
int last_discrepancy
 Bit index that identifies from which bit the next search discrepancy check should start. More...
 
int last_family_discrepancy
 Bit index that identifies the last discrepancy within the first 8-bit family code of the ROM code. More...
 
int last_device_flag
 Flag to indicate previous search was the last device detected. More...
 

Detailed Description

Represents the state of a device search on the 1-Wire bus.

   Pass a pointer to this structure to owb_search_first() and
   owb_search_next() to iterate through detected devices on the bus.

Definition at line 102 of file owb.h.

Field Documentation

◆ last_device_flag

int last_device_flag

Flag to indicate previous search was the last device detected.

Definition at line 107 of file owb.h.

◆ last_discrepancy

int last_discrepancy

Bit index that identifies from which bit the next search discrepancy check should start.

Definition at line 105 of file owb.h.

◆ last_family_discrepancy

int last_family_discrepancy

Bit index that identifies the last discrepancy within the first 8-bit family code of the ROM code.

Definition at line 106 of file owb.h.

◆ rom_code

Device ROM code.

Definition at line 104 of file owb.h.


The documentation for this struct was generated from the following file: