Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
hx711.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Zephyr Project Developers
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
11
12#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_HX711_H_
13#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_HX711_H_
14
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
27
35
49
59
60#ifdef __cplusplus
61}
62#endif
63
67
68#endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_HX711_H_ */
sensor_channel_hx711
Custom sensor channels for HX711.
Definition hx711.h:31
sensor_attribute_hx711
Custom sensor attributes for HX711.
Definition hx711.h:39
hx711_gain
Gain options for the next read operation.
Definition hx711.h:53
@ SENSOR_CHAN_HX711_MASS
Measured mass in grams.
Definition hx711.h:33
@ SENSOR_ATTR_HX711_CONV_FACTOR
Voltage to mass conversion factor in kg/uV.
Definition hx711.h:43
@ SENSOR_ATTR_HX711_OFFSET
Voltage offset to the real zero of the sensor, used in mass conversion.
Definition hx711.h:47
@ HX711_GAIN_64
Gain = 64.
Definition hx711.h:55
@ HX711_GAIN_128
Gain = 128.
Definition hx711.h:57
@ SENSOR_ATTR_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:407
@ SENSOR_CHAN_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:247
Main header file for sensor driver API.