Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
w1_sensor.h File Reference

Extended public API for 1-Wire Sensors. More...

Go to the source code of this file.

Enumerations

enum  sensor_attribute_w1 { SENSOR_ATTR_W1_ROM = SENSOR_ATTR_PRIV_START }
 

Functions

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.
 
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.
 

Detailed Description

Extended public API for 1-Wire Sensors.

This header file exposes an attribute an helper function to allow the runtime configuration of ROM IDs for 1-Wire Sensors.