airvelocity 2.1.0.0
|
API for configuring and manipulating Air Velocity Click driver. More...
Topics | |
Air Velocity Registers Settings | |
Settings for registers of Air Velocity Click driver. | |
Air Velocity MikroBUS Map | |
MikroBUS pin mapping of Air Velocity Click driver. | |
Functions | |
void | airvelocity_cfg_setup (airvelocity_cfg_t *cfg) |
Air Velocity configuration object setup function. | |
err_t | airvelocity_init (airvelocity_t *ctx, airvelocity_cfg_t *cfg) |
Air Velocity initialization function. | |
err_t | airvelocity_read_output (airvelocity_t *ctx, uint16_t *out_counts) |
Air Velocity read output function. | |
float | airvelocity_convert_counts_to_mps (uint16_t out_counts) |
Air Velocity convert counts to mps function. | |
API for configuring and manipulating Air Velocity Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void airvelocity_cfg_setup | ( | airvelocity_cfg_t * | cfg | ) |
Air Velocity configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See airvelocity_cfg_t object definition for detailed explanation. |
float airvelocity_convert_counts_to_mps | ( | uint16_t | out_counts | ) |
Air Velocity convert counts to mps function.
This function converts raw output counts to velocity in m/sec (0-7.23).
[in] | out_counts | : Output counts raw data. |
err_t airvelocity_init | ( | airvelocity_t * | ctx, |
airvelocity_cfg_t * | cfg ) |
Air Velocity initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See airvelocity_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See airvelocity_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t airvelocity_read_output | ( | airvelocity_t * | ctx, |
uint16_t * | out_counts ) |
Air Velocity read output function.
This function reads the raw output counts by using I2C serial interface.
[in] | ctx | : Click context object. See airvelocity_t object definition for detailed explanation. |
[out] | out_counts | : Output counts raw data. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.