pressure12 2.0.0.0
|
Functions | |
void | pressure12_cfg_setup (pressure12_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | pressure12_init (pressure12_t *ctx, pressure12_cfg_t *cfg) |
Initialization function. | |
err_t | pressure12_read_pin_adc (pressure12_t *ctx, uint16_t *data_out) |
Generic read function. | |
err_t | pressure12_read_pin_voltage (pressure12_t *ctx, float *data_out) |
Generic function for read voltage. | |
err_t | pressure12_get_pressure (pressure12_t *ctx, uint16_t *data_out) |
Get pressure function. | |
void pressure12_cfg_setup | ( | pressure12_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
err_t pressure12_get_pressure | ( | pressure12_t * | ctx, |
uint16_t * | data_out ) |
Get pressure function.
ctx | Click object. |
data_out | Pressure value [mBar]. |
@description This function calculates pressure value detected on the Pressure 12 click board.
err_t pressure12_init | ( | pressure12_t * | ctx, |
pressure12_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 pressure12_read_pin_adc | ( | pressure12_t * | ctx, |
uint16_t * | data_out ) |
Generic read function.
ctx | Click object. |
data_out | ADC value on the pin. |
@description This function reads ADC value on the pin.
err_t pressure12_read_pin_voltage | ( | pressure12_t * | ctx, |
float * | data_out ) |
Generic function for read voltage.
ctx | Click object. |
data_out | Voltage value on the pin [V]. |
@description This function reads voltage value on the pin.