pressure13 2.0.0.0
|
API for configuring and manipulating Pressure 13 Click driver. More...
Topics | |
Pressure 13 Registers Settings | |
Settings for registers of Pressure 13 Click driver. | |
Pressure 13 MikroBUS Map | |
MikroBUS pin mapping of Pressure 13 Click driver. | |
Functions | |
void | pressure13_cfg_setup (pressure13_cfg_t *cfg) |
Pressure 13 configuration object setup function. | |
err_t | pressure13_init (pressure13_t *ctx, pressure13_cfg_t *cfg) |
Pressure 13 initialization function. | |
err_t | pressure13_read_an_pin_value (pressure13_t *ctx, uint16_t *data_out) |
Pressure 13 read AN pin value function. | |
err_t | pressure13_read_an_pin_voltage (pressure13_t *ctx, float *data_out) |
Pressure 13 read AN pin voltage level function. | |
err_t | pressure13_get_pressure (pressure13_t *ctx, float *data_out) |
Pressure 13 get pressure function. | |
API for configuring and manipulating Pressure 13 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void pressure13_cfg_setup | ( | pressure13_cfg_t * | cfg | ) |
Pressure 13 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See pressure13_cfg_t object definition for detailed explanation. |
err_t pressure13_get_pressure | ( | pressure13_t * | ctx, |
float * | data_out ) |
Pressure 13 get pressure function.
This function reads voltage levels and converts them to proportional pressure in mBar.
[in] | ctx | : Click context object. See pressure13_t object definition for detailed explanation. |
[out] | data_out | : Output pressure. |
0
- Success, -1
- Error.err_t pressure13_init | ( | pressure13_t * | ctx, |
pressure13_cfg_t * | cfg ) |
Pressure 13 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See pressure13_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See pressure13_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.err_t pressure13_read_an_pin_value | ( | pressure13_t * | ctx, |
uint16_t * | data_out ) |
Pressure 13 read AN pin value function.
This function reads results of AD conversion of the AN pin.
[in] | ctx | : Click context object. See pressure13_t object definition for detailed explanation. |
[out] | data_out | : Output ADC result. |
0
- Success, -1
- Error.err_t pressure13_read_an_pin_voltage | ( | pressure13_t * | ctx, |
float * | data_out ) |
Pressure 13 read AN pin voltage level function.
This function reads results of AD conversion of the AN pin and converts them to proportional voltage level.
[in] | ctx | : Click context object. See pressure13_t object definition for detailed explanation. |
[out] | data_out | : Output voltage level of the analog pin [V]. |
0
- Success, -1
- Error.