42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
54#include "drv_analog_in.h"
67#define FORCE_MAP_MIKROBUS( cfg, mikrobus ) \
68 cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN )
75#define FORCE_RETVAL uint8_t
78#define FORCE_INIT_ERROR 0xFF
85#define FORCE_RLOAD 10.0
86#define FORCE_RZERO 76.63
87#define FORCE_PARA 116.6020682
88#define FORCE_PARB 2.769034857
89#define FORCE_CORA 0.00035
90#define FORCE_CORB 0.02718
91#define FORCE_CORC 1.39538
92#define FORCE_CORD 0.0018
93#define FORCE_ATMOCO2 397.13
#define FORCE_RETVAL
Definition force.h:75
float force_get_correction_factor(float temperature, float humidity)
Get correction factor function.
force_data_t force_generic_read(force_t *ctx)
Generic read function.
FORCE_RETVAL force_init(force_t *ctx, force_cfg_t *cfg)
Initialization function.
void force_cfg_setup(force_cfg_t *cfg)
Config Object Initialization function.
float force_get_resistance(uint32_t adc_value)
Get resistance function.
float force_get_corrected_resistance(float temperature, float humidity, uint32_t adc_value)
Get corrected resistance function.
uint16_t force_data_t
Analog data type.
Definition force.h:106
Click configuration structure definition.
Definition force.h:123
analog_in_resolution_t resolution
Definition force.h:130
float vref
Definition force.h:131
pin_name_t an_pin
Definition force.h:126
Click ctx object definition.
Definition force.h:112
analog_in_t adc
Definition force.h:115