ammonia 2.0.0.0
|
Functions | |
void | ammonia_cfg_setup (ammonia_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | ammonia_init (ammonia_t *ctx, ammonia_cfg_t *cfg) |
Initialization function. | |
err_t | ammonia_read_signal_voltage (ammonia_t *ctx, float *data_out) |
Measurement Voltage Read function. | |
err_t | ammonia_read_measurement (ammonia_t *ctx, uint16_t *data_out) |
Measurement Read function. | |
void ammonia_cfg_setup | ( | ammonia_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
err_t ammonia_init | ( | ammonia_t * | ctx, |
ammonia_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 ammonia_read_measurement | ( | ammonia_t * | ctx, |
uint16_t * | data_out ) |
Measurement Read function.
ctx | Click object. |
data_out | Output measurement level [ppm]. |
@description This function reads the level of the measurement signal voltage and calculates this value to ppm in the range from 5 to 200 ppm.
err_t ammonia_read_signal_voltage | ( | ammonia_t * | ctx, |
float * | data_out ) |
Measurement Voltage Read function.
ctx | Click object. |
data_out | Output voltage value [V]. |
@description This function reads the level of the output measurement voltage.