STM32_EVAL_I2C_EE
[Common]

This file includes the I2C EEPROM driver of STM32-EVAL boards. More...

Modules

 STM32_EVAL_I2C_EE_Private_Types
 STM32_EVAL_I2C_EE_Private_Defines
 STM32_EVAL_I2C_EE_Private_Macros
 STM32_EVAL_I2C_EE_Private_Variables
 STM32_EVAL_I2C_EE_Private_Function_Prototypes
 STM32_EVAL_I2C_EE_Private_Functions
 STM32_EVAL_I2C_EE_Exported_Types
 STM32_EVAL_I2C_EE_Exported_Constants
 STM32_EVAL_I2C_EE_Exported_Macros
 STM32_EVAL_I2C_EE_Exported_Functions

Functions

void sEE_EnterCriticalSection_UserCallback (void)
 Start critical section: these callbacks should be typically used to disable interrupts when entering a critical section of I2C communication You may use default callbacks provided into this driver by uncommenting the define USE_DEFAULT_CRITICAL_CALLBACK.
void sEE_ExitCriticalSection_UserCallback (void)
 Start and End of critical section: these callbacks should be typically used to re-enable interrupts when exiting a critical section of I2C communication You may use default callbacks provided into this driver by uncommenting the define USE_DEFAULT_CRITICAL_CALLBACK.
void sEE_I2C_DMA_RX_IRQHandler (void)
 This function handles the DMA Rx Channel interrupt Handler.
void sEE_I2C_DMA_TX_IRQHandler (void)
 This function handles the DMA Tx Channel interrupt Handler.

Detailed Description

This file includes the I2C EEPROM driver of STM32-EVAL boards.


Function Documentation

void sEE_EnterCriticalSection_UserCallback ( void   ) 

Start critical section: these callbacks should be typically used to disable interrupts when entering a critical section of I2C communication You may use default callbacks provided into this driver by uncommenting the define USE_DEFAULT_CRITICAL_CALLBACK.

Or you can comment that line and implement these callbacks into your application.

Parameters:
None. 
Return values:
None. 

Definition at line 817 of file stm32_eval_i2c_ee.c.

Referenced by sEE_ReadBuffer().

void sEE_ExitCriticalSection_UserCallback ( void   ) 

Start and End of critical section: these callbacks should be typically used to re-enable interrupts when exiting a critical section of I2C communication You may use default callbacks provided into this driver by uncommenting the define USE_DEFAULT_CRITICAL_CALLBACK.

Or you can comment that line and implement these callbacks into your application.

Parameters:
None. 
Return values:
None. 

Definition at line 832 of file stm32_eval_i2c_ee.c.

Referenced by sEE_ReadBuffer().

void sEE_I2C_DMA_RX_IRQHandler ( void   ) 

This function handles the DMA Rx Channel interrupt Handler.

Parameters:
None 
Return values:
None 

< Send STOP Condition

Definition at line 774 of file stm32_eval_i2c_ee.c.

References DISABLE, DMA_ClearFlag(), DMA_Cmd(), DMA_GetFlagStatus(), ENABLE, I2C_GenerateSTOP(), RESET, sEE_I2C, sEE_I2C_DMA_CHANNEL_RX, sEE_I2C_DMA_FLAG_RX_GL, sEE_I2C_DMA_FLAG_RX_TC, and sEEDataReadPointer.

void sEE_I2C_DMA_TX_IRQHandler ( void   ) 

This function handles the DMA Tx Channel interrupt Handler.

Parameters:
None 
Return values:
None 

< Wait till all data have been physically transferred on the bus

Definition at line 741 of file stm32_eval_i2c_ee.c.

References DISABLE, DMA_ClearFlag(), DMA_Cmd(), DMA_GetFlagStatus(), ENABLE, I2C_FLAG_BTF, I2C_GenerateSTOP(), I2C_GetFlagStatus(), RESET, sEE_I2C, sEE_I2C_DMA_CHANNEL_TX, sEE_I2C_DMA_FLAG_TX_GL, sEE_I2C_DMA_FLAG_TX_TC, sEE_LONG_TIMEOUT, sEE_TIMEOUT_UserCallback(), sEEDataWritePointer, and sEETimeout.

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32