Symbols
loading...
Files
loading...
SourceVuSTM32 Libraries and SamplesI2C_OneBoard_Communication_IT_Init

I2C_OneBoard_Communication_IT_Init sample

I2C_OneBoard_Communication_IT_Init is a sample project defining the following symbols:

Most used functions

Name
Location
Summary
This function handles NMI exception.
This function handles Hard Fault exception.
This function handles Debug Monitor exception.
This function handles Memory Manage exception.
This function handles Bus Fault exception.
This function handles Usage Fault exception.
This function handles SysTick Handler.
This function handles SVCall exception.
This function handles PendSVC exception.
Main program
System Clock Configuration The system Clock is configured as follow : System Clock source = PLL (HSE) SYSCLK(Hz) = 100000000 HCLK(Hz) = 100000000 AHB Prescaler = 1 APB1 Prescaler = 2 APB2 Prescaler = 1 HSE Frequency(Hz) = 8000000 PLL_M = 8 PLL_N = 400 PLL_P = 4 VDD(V) = 3.3 Main regulator output voltage = Scale1 mode Flash Latency(WS) = 3
Set LED2 to Blinking mode for an infinite loop (toggle period based on value provided as input parameter).
Initialize LED2.
Function to manage User push-button
Turn-on LED2.
Configures User push-button in GPIO or EXTI Line Mode.
Turn-off LED2.
Brief This function handles I2C1 (Slave) event interrupt request. Param None Retval None
Brief This function handles I2C1 (Slave) error interrupt request. Param None Retval None
Wait for User push-button press to start transfer.
Function called in case of error detected in I2C IT Handler
This function configures I2C2 in Master mode.
This function Activate I2C2 peripheral (Master)
This Function handle Master events to perform a reception process
Function called from Slave I2C IRQ Handler when STOP condition is detected Function is in charge of disabling interrupts.
This function Activate I2C1 peripheral (Slave)
This Function handle Slave events to perform a transmission process
This function configures I2C1 in Slave mode.
Function called from I2C IRQ Handler when TXE flag is set Function is in charge of transmit a byte on I2C lines.
Function called from I2C IRQ Handler when STOP flag is set Function is in charge of checking data received, LED2 is On if data are correct.
Function called from I2C IRQ Handler when RXNE flag is set Function is in charge of reading byte received on I2C lines.
Brief This function handles I2C2 (Master) interrupt request. Param None Retval None
Brief This function handles I2C2 (Master) error interrupt request. Param None Retval None

Other commonly used symbols

Name
Location
Summary
Miscellaneous Configuration *********************** Vector Table base offset field. This value must be a multiple of 0x200.
@file Examples_LL/I2C/I2C_OneBoard_Communication_IT_Init/Inc/main.h @author MCD Application Team Header for main.c module @attention Copyright (c) 2017 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.
@file Examples_LL/I2C/I2C_OneBoard_Communication_IT_Init/Inc/stm32f4xx_it.h @author MCD Application Team This file contains the headers of the interrupt handlers. @attention Copyright (c) 2017 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.
Key push-button
Toggle periods for various blinking modes
I2C devices settings
Variables related to MasterReceive process
Define related to SlaveTransmit process
Master Transfer Request Direction

Dependencies

I2C_OneBoard_Communication_IT_Init depends on the following libraries: