Go to the documentation of this file.
37 #include "drv_analog_in.h"
50 #define THERMO16_MAP_MIKROBUS( cfg, mikrobus ) \
51 cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN ); \
58 #define THERMO16_RETVAL uint8_t
60 #define THERMO16_OK 0x00
61 #define THERMO16_INIT_ERROR 0xFF
68 #define THERMO16_TEMP_IN_CELSIUS 0x00
69 #define THERMO16_TEMP_IN_KELVIN 0x01
70 #define THERMO16_TEMP_IN_FAHRENHEIT 0x02
110 hal_adc_voltage_reference_t
vref;
171 #endif // _THERMO16_H_
hal_adc_channel_t channel
Definition: thermo16.h:108
void thermo16_cfg_setup(thermo16_cfg_t *cfg)
Config Object Initialization function.
hal_adc_voltage_reference_t vref
Definition: thermo16.h:110
#define THERMO16_RETVAL
Definition: thermo16.h:58
Click ctx object definition.
Definition: thermo16.h:88
hal_adc_resolution_t resolution
Definition: thermo16.h:109
hal_adc_resolution_t adc_res
Definition: thermo16.h:93
thermo16_data_t thermo16_generic_read(thermo16_t *ctx)
Generic read function.
Click configuration structure definition.
Definition: thermo16.h:100
float thermo16_get_temperature(thermo16_t *ctx, uint8_t temp_format)
Temperature function.
analog_in_data_t thermo16_data_t
Analog data type.
Definition: thermo16.h:83
pin_name_t an_pin
Definition: thermo16.h:104
analog_in_t adc
Definition: thermo16.h:92
THERMO16_RETVAL thermo16_init(thermo16_t *ctx, thermo16_cfg_t *cfg)
Initialization function.