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

#include <owb.h>

Data Fields

const char * name
 
owb_status(* uninitialize )(const OneWireBus *bus)
 
owb_status(* reset )(const OneWireBus *bus, bool *is_present)
 
owb_status(* write_bits )(const OneWireBus *bus, uint8_t out, int number_of_bits_to_write)
 
owb_status(* read_bits )(const OneWireBus *bus, uint8_t *in, int number_of_bits_to_read)
 

Detailed Description

NOTE: Driver assumes that (*init) was called prior to any other methods

Definition at line 126 of file owb.h.

Field Documentation

◆ name

const char* name

Driver identification

Definition at line 129 of file owb.h.

◆ read_bits

owb_status(* read_bits) (const OneWireBus *bus, uint8_t *in, int number_of_bits_to_read)

NOTE: Data is read into the high bits, eg. each bit read is shifted down before the next bit is read

Definition at line 141 of file owb.h.

◆ reset

owb_status(* reset) (const OneWireBus *bus, bool *is_present)

Pointer to driver reset functio

Definition at line 135 of file owb.h.

◆ uninitialize

owb_status(* uninitialize) (const OneWireBus *bus)

Pointer to driver uninitialization function

Definition at line 132 of file owb.h.

◆ write_bits

owb_status(* write_bits) (const OneWireBus *bus, uint8_t out, int number_of_bits_to_write)

NOTE: The data is shifted out of the low bits, eg. it is written in the order of lsb to msb

Definition at line 138 of file owb.h.


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