STM32L476RG I2C C implementation

Hello,
i’m working with STM32L476RG and MMA8452Q Accelerometer, i need to know how to use mbed i2c classes inside my C programm to implement I2C communication.
Thank you all