F439_CPP_BMP390_Barometric_Pressure_and_Altimeter_01 1.0
STM32F439 BMP390 barometric pressure and altimeter tutorial
Loading...
Searching...
No Matches
Initialization

Initialize the sensor and device structure.

Initialize the sensor and device structure.

CPP guard

bmp3_init

int8_t bmp3_init(struct bmp3_dev *dev);
This API is the entry point. Performs the selection of I2C/SPI read mechanism according to the selected interface and reads the chip-id and calibration data of the sensor.
Parameters
[in,out]dev: Structure instance of bmp3_dev
Returns
Result of API execution status
Return values
0-> Success
>0-> Warning
<0-> Error