Go to the documentation of this file.
37 #include "mikrosdk_version.h"
40 #if mikroSDK_GET_VERSION < 20800ul
41 #include "rcu_delays.h"
47 #include "drv_analog_in.h"
60 #define THERMO16_MAP_MIKROBUS( cfg, mikrobus ) \
61 cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN )
68 #define THERMO16_RETVAL uint8_t
70 #define THERMO16_OK 0x00
71 #define THERMO16_INIT_ERROR 0xFF
78 #define THERMO16_TEMP_IN_CELSIUS 0x00
79 #define THERMO16_TEMP_IN_KELVIN 0x01
80 #define THERMO16_TEMP_IN_FAHRENHEIT 0x02
180 #endif // _THERMO16_H_
analog_in_resolution_t adc_res
Definition: thermo16.h:103
float vref
Definition: thermo16.h:119
void thermo16_cfg_setup(thermo16_cfg_t *cfg)
Config Object Initialization function.
#define THERMO16_RETVAL
Definition: thermo16.h:68
Click ctx object definition.
Definition: thermo16.h:99
analog_in_resolution_t resolution
Definition: thermo16.h:118
thermo16_data_t thermo16_generic_read(thermo16_t *ctx)
Generic read function.
Click configuration structure definition.
Definition: thermo16.h:111
float thermo16_get_temperature(thermo16_t *ctx, uint8_t temp_format)
Temperature function.
pin_name_t an_pin
Definition: thermo16.h:114
uint16_t thermo16_data_t
Analog data type.
Definition: thermo16.h:93
analog_in_t adc
Definition: thermo16.h:102
THERMO16_RETVAL thermo16_init(thermo16_t *ctx, thermo16_cfg_t *cfg)
Initialization function.