15#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_W1_SENSOR_H_
16#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_W1_SENSOR_H_
@ SENSOR_ATTR_PRIV_START
This and higher values are sensor specific.
Definition: sensor.h:354
#define BIT64_MASK(n)
64-bit bit mask with bits 0 through n-1 (inclusive) set, or 0 if n is 0.
Definition: util_macro.h:74
static void w1_sensor_value_to_rom(const struct sensor_value *val, struct w1_rom *rom)
Function to write an rom id stored in a sensor value to a struct w1_rom ptr.
Definition: w1_sensor.h:56
static void w1_rom_to_sensor_value(const struct w1_rom *rom, struct sensor_value *val)
Function to write a w1_rom struct to an sensor value ptr.
Definition: w1_sensor.h:43
sensor_attribute_w1
Definition: w1_sensor.h:32
@ SENSOR_ATTR_W1_ROM
Device unique 1-Wire ROM.
Definition: w1_sensor.h:34
Public APIs for the sensor driver.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINT64_TYPE__ uint64_t
Definition: stdint.h:91
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
Representation of a sensor readout value.
Definition: sensor.h:51
int32_t val2
Fractional part of the value (in one-millionth parts).
Definition: sensor.h:55
int32_t val1
Integer part of the value.
Definition: sensor.h:53
w1_rom struct.
Definition: w1.h:434
static void sys_put_be64(uint64_t val, uint8_t dst[8])
Put a 64-bit integer as big-endian to arbitrary location.
Definition: byteorder.h:395
static uint64_t sys_get_be64(const uint8_t src[8])
Get a 64-bit integer stored in big-endian format.
Definition: byteorder.h:576
Public 1-Wire Driver APIs.