Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

1-Wire Sensor API More...

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

1-Wire Sensor API

Enumeration Type Documentation

◆ sensor_attribute_w1

#include <zephyr/drivers/sensor/w1_sensor.h>

Enumerator
SENSOR_ATTR_W1_ROM 

Device unique 1-Wire ROM.

Function Documentation

◆ w1_rom_to_sensor_value()

static void w1_rom_to_sensor_value ( const struct w1_rom * rom,
struct sensor_value * val )
inlinestatic

#include <zephyr/drivers/sensor/w1_sensor.h>

Function to write a w1_rom struct to an sensor value ptr.

Parameters
romPointer to the rom struct.
valPointer to the sensor value.

◆ w1_sensor_value_to_rom()

static void w1_sensor_value_to_rom ( const struct sensor_value * val,
struct w1_rom * rom )
inlinestatic

#include <zephyr/drivers/sensor/w1_sensor.h>

Function to write an rom id stored in a sensor value to a struct w1_rom ptr.

Parameters
valSensor_value representing the rom.
romThe rom struct ptr.