27 #include "../extern/hx711-pico-c/include/common.h"
28 #include "../include/hx711_scale_adaptor.h"
59 assert(value != NULL);
62 return hx711_get_value_timeout(hxa->
_hx, value, timeout);
68 int32_t*
const value) {
71 assert(value != NULL);
74 *value = hx711_get_value(hxa->
_hx);
bool hx711_scale_adaptor_get_value(scale_adaptor_t *const sa, int32_t *const value)
bool hx711_scale_adaptor_get_value_timeout(scale_adaptor_t *const sa, int32_t *const value, const uint timeout)
scale_adaptor_t * hx711_scale_adaptor_get_base(hx711_scale_adaptor_t *const hxa)
bool hx711_scale_adaptor_init(hx711_scale_adaptor_t *const hxa, hx711_t *const hx)
void * scale_adaptor_get_data(scale_adaptor_t *const sa)
bool scale_adaptor_init(scale_adaptor_t *const sa, void *data)
bool(* get_value)(struct scale_adaptor *const sa, int32_t *const value)
Function pointer to function.
bool(* get_value_timeout)(struct scale_adaptor *const sa, int32_t *const value, const uint timeout)
Function pointer to function.