First of all you need to configure I2C with HAL library. After that make a variable from BMP388_Handle_TypeDef type, this type contains all variables that are necessary to use and configure BMP388.
This library should be used along with the STM32 HAL drivers. Nevertheless, after a few changes (mainly in the PIO control functions) it can be used with the StdPeriph library. Its current state ...