pressure3 2.0.0.0
|
Pressure 3 click is a mikroBUS add-on board that carries an Infineon DPS310 digital barometric pressure sensor.
We provide a library for the Pressure3 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Pressure3 Click driver.
- Initialization function.void pressure3_cfg_setup ( pressure3_cfg_t *cfg );
PRESSURE3_RETVAL pressure3_init ( pressure3_t *ctx, pressure3_cfg_t *cfg );
void pressure3_default_cfg ( pressure3_t *ctx );
- Get coefficients.void pressure3_get_t_p_data ( pressure3_t *ctx, float *temperature, float *presure, pressure3_coeff_t *coeff_struct );
void pressure3_get_coefficients ( pressure3_t *ctx, pressure3_coeff_t *coeff_struct );
int32_t pressure3_get_measurement_data ( pressure3_t *ctx, uint8_t mbs_reg_addr );
This application is digital barometric pressure sensor.
The demo application is composed of two sections :
Initialization device, set default configuration and start to write log.
This is an example which demonstrates the use of Pressure 3 Click board. Measured pressure and temperature data from the DPS310 sensor on Pressure 3 click board. Results are being sent to the Usart Terminal where you can track their changes. All data logs write on usb uart changes for every 3 sec.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.