AskSin++
Public Member Functions | Static Public Member Functions | List of all members
as::Ds18b20 Class Reference
Inheritance diagram for as::Ds18b20:
Inheritance graph
[legend]
Collaboration diagram for as::Ds18b20:
Collaboration graph
[legend]

Public Member Functions

void init (OneWire &ow, uint8_t *addr)
 
void convert (__attribute__((unused)) bool kick=false)
 
void wait ()
 
void read ()
 
void measure (__attribute__((unused)) bool async=false)
 
- Public Member Functions inherited from as::Temperature
int16_t temperature ()
 
- Public Member Functions inherited from as::Sensor
void init ()
 
bool present ()
 
void measure (__attribute__((unused)) bool async=false)
 

Static Public Member Functions

static uint8_t init (OneWire &ow, Ds18b20 *devs, uint8_t max)
 
static void measure (Ds18b20 *devs, uint8_t count)
 
static bool valid (uint8_t *addr)
 

Additional Inherited Members

- Protected Attributes inherited from as::Temperature
int16_t _temperature
 
- Protected Attributes inherited from as::Sensor
bool _present
 

Detailed Description

Definition at line 20 of file Ds18b20.h.

Member Function Documentation

◆ init()

static uint8_t as::Ds18b20::init ( OneWire &  ow,
Ds18b20 devs,
uint8_t  max 
)
inlinestatic

Scan the bus and init max sensors with the address.

Definition at line 26 of file Ds18b20.h.

◆ measure()

static void as::Ds18b20::measure ( Ds18b20 devs,
uint8_t  count 
)
inlinestatic

Measure all sensors in one step

Definition at line 42 of file Ds18b20.h.

◆ valid()

static bool as::Ds18b20::valid ( uint8_t *  addr)
inlinestatic

Check if this is a supported 1Wire device

Definition at line 54 of file Ds18b20.h.