1-Wire Sensor API
More...
◆ sensor_attribute_w1
#include <w1_sensor.h>
| Enumerator |
|---|
| SENSOR_ATTR_W1_ROM | Device unique 1-Wire ROM.
|
◆ w1_rom_to_sensor_value()
#include <w1_sensor.h>
Function to write a w1_rom struct to an sensor value ptr.
- Parameters
-
| rom | Pointer to the rom struct. |
| val | Pointer to the sensor value. |
◆ w1_sensor_value_to_rom()
#include <w1_sensor.h>
Function to write an rom id stored in a sensor value to a struct w1_rom ptr.
- Parameters
-
| val | Sensor_value representing the rom. |
| rom | The rom struct ptr. |