float vdiv_get_offset(const vdiv_context dev)
Definition: vdiv.c:84
upm_result_t vdiv_get_raw_volts(const vdiv_context dev, float *value)
Definition: vdiv.c:100
int vdiv_get_divsw(const vdiv_context dev)
Definition: vdiv.c:95
void vdiv_close(vdiv_context dev)
Definition: vdiv.c:61
upm_result_t vdiv_get_computed_volts(const vdiv_context dev, float *value)
Definition: vdiv.c:112
upm_result_t vdiv_set_offset(const vdiv_context dev, float offset)
Definition: vdiv.c:73
vdiv_context vdiv_init(int16_t pin, float voltage_ref)
Definition: vdiv.c:30
float vdiv_get_scale(const vdiv_context dev)
Definition: vdiv.c:79
struct _vdiv_context * vdiv_context
upm_result_t vdiv_set_divsw(const vdiv_context dev, int vdiv_sw)
Definition: vdiv.c:89
upm_result_t vdiv_set_scale(const vdiv_context dev, float scale)
Definition: vdiv.c:67