53 unsigned int device_idx;
107 unsigned int device_idx,
200 float scale,
float offset);
211 float scale,
float offset);
struct _dfrec_context * dfrec_context
void dfrec_set_threshold_min_max(const dfrec_context dev, float min, float max)
Definition: dfrec.c:251
float dfrec_get_temperature(const dfrec_context dev)
Definition: dfrec.c:230
float dfrec_get_ec(const dfrec_context dev)
Definition: dfrec.c:223
void dfrec_set_threshold_1(const dfrec_context dev, float thres, float scale, float offset)
Definition: dfrec.c:260
upm_result_t dfrec_update(const dfrec_context dev)
Definition: dfrec.c:164
C API for the DS18B20 1-Wire Temperature Sensor.
void dfrec_set_threshold_3(const dfrec_context dev, float scale, float offset)
Definition: dfrec.c:280
void dfrec_set_threshold_2(const dfrec_context dev, float thres, float scale, float offset)
Definition: dfrec.c:270
void dfrec_set_offset(const dfrec_context dev, float offset)
Definition: dfrec.c:150
float dfrec_get_normalized(const dfrec_context dev)
Definition: dfrec.c:244
void dfrec_close(dfrec_context dev)
Definition: dfrec.c:137
float dfrec_get_volts(const dfrec_context dev)
Definition: dfrec.c:237
void dfrec_set_scale(const dfrec_context dev, float scale)
Definition: dfrec.c:157
dfrec_context dfrec_init(unsigned int apin, unsigned int uart_ow, unsigned int device_idx, float a_ref)
Definition: dfrec.c:60