upm_result_t o2_set_aref(const o2_context dev, float aref)
Definition: o2.c:64
upm_result_t o2_set_scale(const o2_context dev, float scale)
Definition: o2.c:86
upm_result_t o2_set_offset(const o2_context dev, float offset)
Definition: o2.c:75
float o2_get_scale(const o2_context dev)
Definition: o2.c:92
o2_context o2_init(int16_t pin)
Definition: o2.c:29
float o2_get_aref(const o2_context dev)
Definition: o2.c:70
upm_result_t o2_get_counts(const o2_context dev, int *value)
Definition: o2.c:97
void o2_close(o2_context dev)
Definition: o2.c:58
float o2_get_offset(const o2_context dev)
Definition: o2.c:81
upm_result_t o2_get_raw_volts(const o2_context dev, float *value)
Definition: o2.c:105
struct _o2_context * o2_context
upm_result_t o2_get_value(const o2_context dev, float *value)
Definition: o2.c:117