|
ZotBins Core
|
#include <driver/gpio.h>#include <stdbool.h>#include <esp_err.h>

Go to the source code of this file.
Data Structures | |
| struct | hx711_t |
Enumerations | |
| enum | hx711_gain_t { HX711_GAIN_A_128 = 0 , HX711_GAIN_B_32 , HX711_GAIN_A_64 } |
Functions | |
| esp_err_t | hx711_init (hx711_t *dev) |
| Initialize device. | |
| esp_err_t | hx711_power_down (hx711_t *dev, bool down) |
| Set device power up/down. | |
| esp_err_t | hx711_set_gain (hx711_t *dev, hx711_gain_t gain) |
| Set device gain and channel. | |
| esp_err_t | hx711_is_ready (hx711_t *dev, bool *ready) |
| Check if device ready to send data. | |
| esp_err_t | hx711_wait (hx711_t *dev, size_t timeout_ms) |
| Wait for device to become ready. | |
| esp_err_t | hx711_read_data (hx711_t *dev, int32_t *data) |
| Read raw data from device. | |
| esp_err_t | hx711_read_average (hx711_t *dev, size_t times, int32_t *data) |
| Read average data. | |