force 2.0.0.0
|
Functions | |
void | force_cfg_setup (force_cfg_t *cfg) |
Config Object Initialization function. | |
FORCE_RETVAL | force_init (force_t *ctx, force_cfg_t *cfg) |
Initialization function. | |
force_data_t | force_generic_read (force_t *ctx) |
Generic read function. | |
float | force_get_correction_factor (float temperature, float humidity) |
Get correction factor 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. | |
void force_cfg_setup | ( | force_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
force_data_t force_generic_read | ( | force_t * | ctx | ) |
Generic read function.
ctx | Click object. |
@description This function reads ADC data.
float force_get_corrected_resistance | ( | float | temperature, |
float | humidity, | ||
uint32_t | adc_value ) |
Get corrected resistance function.
temperature | Temperature value. |
humidity | Humidity value. |
adc_value | ADC value. |
@description This function calculates corrected resistance data based on the ADC input.
float force_get_correction_factor | ( | float | temperature, |
float | humidity ) |
Get correction factor function.
temperature | Temperature value. |
humidity | Humidity value. |
@description This function calculates the correction factor based on temperature and humidity data.
float force_get_resistance | ( | uint32_t | adc_value | ) |
Get resistance function.
adc_value | ADC value. |
@description This function calculates resistance data based on the ADC input.
FORCE_RETVAL force_init | ( | force_t * | ctx, |
force_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.