42#include <driver/gpio.h>
esp_err_t hx711_power_down(hx711_t *dev, bool down)
Set device power up/down.
Definition hx711.c:102
esp_err_t hx711_init(hx711_t *dev)
Initialize device.
Definition hx711.c:90
esp_err_t hx711_read_average(hx711_t *dev, size_t times, int32_t *data)
Read average data.
Definition hx711.c:158
esp_err_t hx711_read_data(hx711_t *dev, int32_t *data)
Read raw data from device.
Definition hx711.c:146
esp_err_t hx711_set_gain(hx711_t *dev, hx711_gain_t gain)
Set device gain and channel.
Definition hx711.c:112
hx711_gain_t
Definition hx711.h:53
esp_err_t hx711_is_ready(hx711_t *dev, bool *ready)
Check if device ready to send data.
Definition hx711.c:124
esp_err_t hx711_wait(hx711_t *dev, size_t timeout_ms)
Wait for device to become ready.
Definition hx711.c:133
@ HX711_GAIN_B_32
Channel B, gain factor 32.
Definition hx711.h:55
@ HX711_GAIN_A_128
Channel A, gain factor 128.
Definition hx711.h:54
@ HX711_GAIN_A_64
Channel A, gain factor 64.
Definition hx711.h:56