Basic_Frame_TypeC_2023_Omni
Loading...
Searching...
No Matches
i2c.c File Reference

This file provides code for the configuration of the I2C instances. More...

#include "i2c.h"

Functions

void MX_I2C2_Init (void)
void MX_I2C3_Init (void)
void HAL_I2C_MspInit (I2C_HandleTypeDef *i2cHandle)
void HAL_I2C_MspDeInit (I2C_HandleTypeDef *i2cHandle)

Variables

I2C_HandleTypeDef hi2c2
I2C_HandleTypeDef hi2c3

Detailed Description

This file provides code for the configuration of the I2C instances.

Attention

Copyright (c) 2023 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Function Documentation

◆ HAL_I2C_MspDeInit()

void HAL_I2C_MspDeInit ( I2C_HandleTypeDef * i2cHandle)

I2C2 GPIO Configuration PF0 ------> I2C2_SDA PH4 ------> I2C2_SCL

I2C3 GPIO Configuration PC9 ------> I2C3_SDA PA8 ------> I2C3_SCL

◆ HAL_I2C_MspInit()

void HAL_I2C_MspInit ( I2C_HandleTypeDef * i2cHandle)

I2C2 GPIO Configuration PF0 ------> I2C2_SDA PH4 ------> I2C2_SCL

I2C3 GPIO Configuration PC9 ------> I2C3_SDA PA8 ------> I2C3_SCL