rmeter 2.0.0.0
|
Functions | |
void | rmeter_cfg_setup (rmeter_cfg_t *cfg) |
Config Object Setup function. | |
err_t | rmeter_init (rmeter_t *ctx, rmeter_cfg_t *cfg) |
Initialization function. | |
void | rmeter_set_callback_handler (rmeter_t *ctx, rmeter_callback_t handler) |
Callback Handler Setup function. | |
void | rmeter_set_range_up_to_1k9_ohms (rmeter_t *ctx) |
Range Setup Up To 1k9 Ohms function. | |
void | rmeter_set_range_up_to_17k_ohms (rmeter_t *ctx) |
Range Setup Up To 17k Ohms function. | |
void | rmeter_set_range_up_to_1M9_ohms (rmeter_t *ctx) |
Range Setup Up To 1M9 Ohms function. | |
err_t | rmeter_read_measurement (rmeter_t *ctx, uint16_t *data_out) |
Measurement Reading function. | |
err_t | rmeter_calculate_resistance (rmeter_t *ctx, float *data_out, uint16_t data_in) |
Resistance Calculation function. | |
uint16_t | rmeter_auto_scale_range_execution (rmeter_t *ctx) |
Auto Scale Range Execution function. | |
err_t | rmeter_read_an (rmeter_t *ctx, uint16_t *data_out) |
AN Pin Reading function. | |
err_t | rmeter_read_an_voltage (rmeter_t *ctx, float *data_out) |
AN Voltage Level Reading function. | |
uint16_t rmeter_auto_scale_range_execution | ( | rmeter_t * | ctx | ) |
Auto Scale Range Execution function.
ctx | Click object. |
@description This function is able to recognize and set the necessary range of measurement of the target resistance.
err_t rmeter_calculate_resistance | ( | rmeter_t * | ctx, |
float * | data_out, | ||
uint16_t | data_in ) |
Resistance Calculation function.
ctx | Click object. |
data_out | Floating value of calculated resistance [ohm]. |
data_in | 12-bit measurement data. |
@description This function performs the all necessary calculations to get the target resistance value depending on the measured data.
void rmeter_cfg_setup | ( | rmeter_cfg_t * | cfg | ) |
Config Object Setup function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
err_t rmeter_init | ( | rmeter_t * | ctx, |
rmeter_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.
err_t rmeter_read_an | ( | rmeter_t * | ctx, |
uint16_t * | data_out ) |
AN Pin Reading function.
ctx | Click object. |
data_out | Analog pin converted value. |
@description This function reads the analog input pin (AN) value depending on the selected ADC resolution.
err_t rmeter_read_an_voltage | ( | rmeter_t * | ctx, |
float * | data_out ) |
AN Voltage Level Reading function.
ctx | Click object. |
data_out | Analog pin voltage level [V]. |
@description This function reads the analog input pin (AN) voltage level depending on the selected ADC resolution and ADC reference voltage.
err_t rmeter_read_measurement | ( | rmeter_t * | ctx, |
uint16_t * | data_out ) |
Measurement Reading function.
ctx | Click object. |
data_out | 12-bit measurement results. |
@description This function reads the converted measurement results.
void rmeter_set_callback_handler | ( | rmeter_t * | ctx, |
rmeter_callback_t | handler ) |
Callback Handler Setup function.
ctx | Click object. |
handler | Callback handler which will be set. |
@description This function sets a callback handler for message logging.
void rmeter_set_range_up_to_17k_ohms | ( | rmeter_t * | ctx | ) |
Range Setup Up To 17k Ohms function.
ctx | Click object. |
@description This function sets the scale range up to 17k ohms for better sensitivity of resistance in that range.
void rmeter_set_range_up_to_1k9_ohms | ( | rmeter_t * | ctx | ) |
Range Setup Up To 1k9 Ohms function.
ctx | Click object. |
@description This function sets the scale range up to 1k9 ohms for better sensitivity of small resistance.
void rmeter_set_range_up_to_1M9_ohms | ( | rmeter_t * | ctx | ) |
Range Setup Up To 1M9 Ohms function.
ctx | Click object. |
@description This function sets the scale range up to 1M9 ohms for large range of resistance.