DIY Logging Volt/Ampmeter
i2c.c File Reference

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

#include "i2c.h"

Go to the source code of this file.

Functions

void MX_I2C1_Init (void)
 
void HAL_I2C_MspInit (I2C_HandleTypeDef *i2cHandle)
 
void HAL_I2C_MspDeInit (I2C_HandleTypeDef *i2cHandle)
 

Variables

I2C_HandleTypeDef hi2c1
 

Detailed Description

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

Attention

© Copyright (c) 2021 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file i2c.c.

Function Documentation

◆ MX_I2C1_Init()

void MX_I2C1_Init ( void  )

Variable Documentation

◆ hi2c1

Definition at line 27 of file i2c.c.

HAL_I2C_Init
HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c)
I2C_InitTypeDef::OwnAddress1
uint32_t OwnAddress1
Definition: stm32f1xx_hal_i2c.h:56
I2C_InitTypeDef::AddressingMode
uint32_t AddressingMode
Definition: stm32f1xx_hal_i2c.h:59
I2C_InitTypeDef::OwnAddress2
uint32_t OwnAddress2
Definition: stm32f1xx_hal_i2c.h:65
I2C_ADDRESSINGMODE_7BIT
#define I2C_ADDRESSINGMODE_7BIT
Definition: stm32f1xx_hal_i2c.h:299
I2C_InitTypeDef::DualAddressMode
uint32_t DualAddressMode
Definition: stm32f1xx_hal_i2c.h:62
I2C_DUTYCYCLE_2
#define I2C_DUTYCYCLE_2
Definition: stm32f1xx_hal_i2c.h:290
I2C_InitTypeDef::NoStretchMode
uint32_t NoStretchMode
Definition: stm32f1xx_hal_i2c.h:71
I2C_DUALADDRESS_DISABLE
#define I2C_DUALADDRESS_DISABLE
Definition: stm32f1xx_hal_i2c.h:308
hi2c1
I2C_HandleTypeDef hi2c1
Definition: i2c.c:27
I2C_GENERALCALL_DISABLE
#define I2C_GENERALCALL_DISABLE
Definition: stm32f1xx_hal_i2c.h:317
I2C_InitTypeDef::DutyCycle
uint32_t DutyCycle
Definition: stm32f1xx_hal_i2c.h:53
I2C_HandleTypeDef::Instance
I2C_TypeDef * Instance
Definition: stm32f1xx_hal_i2c.h:191
HAL_OK
@ HAL_OK
Definition: stm32f1xx_hal_def.h:41
I2C_InitTypeDef::GeneralCallMode
uint32_t GeneralCallMode
Definition: stm32f1xx_hal_i2c.h:68
I2C_HandleTypeDef::Init
I2C_InitTypeDef Init
Definition: stm32f1xx_hal_i2c.h:193
Error_Handler
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition: main.c:1102
I2C1
#define I2C1
Definition: stm32f103xb.h:657
I2C_InitTypeDef::ClockSpeed
uint32_t ClockSpeed
Definition: stm32f1xx_hal_i2c.h:50
I2C_NOSTRETCH_DISABLE
#define I2C_NOSTRETCH_DISABLE
Definition: stm32f1xx_hal_i2c.h:326