stm32_eval_i2c_ee.h File Reference

This file contains all the functions prototypes for the stm32_eval_i2c_ee firmware driver. More...

#include "stm32_eval.h"

Go to the source code of this file.

Defines

#define I2C_SLAVE_ADDRESS7   0xA0
#define I2C_SPEED   300000
#define sEE_FAIL   1
#define sEE_FLAG_TIMEOUT   ((uint32_t)0x1000)
#define sEE_LONG_TIMEOUT   ((uint32_t)(10 * sEE_FLAG_TIMEOUT))
#define sEE_MAX_TRIALS_NUMBER   150
#define sEE_OK   0
#define sEE_STATE_BUSY   1
#define sEE_STATE_ERROR   2
#define sEE_STATE_READY   0
#define USE_DEFAULT_CRITICAL_CALLBACK

Functions

void sEE_DeInit (void)
 DeInitializes peripherals used by the I2C EEPROM driver.
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_Init (void)
 Initializes peripherals used by the I2C EEPROM driver.
uint32_t sEE_ReadBuffer (uint8_t *pBuffer, uint16_t ReadAddr, uint16_t *NumByteToRead)
 Reads a block of data from the EEPROM.
uint32_t sEE_TIMEOUT_UserCallback (void)
 Example of timeout situation management.
uint32_t sEE_WaitEepromStandbyState (void)
 Wait for EEPROM Standby state.
void sEE_WriteBuffer (uint8_t *pBuffer, uint16_t WriteAddr, uint16_t NumByteToWrite)
 Writes buffer of data to the I2C EEPROM.
uint32_t sEE_WritePage (uint8_t *pBuffer, uint16_t WriteAddr, uint8_t *NumByteToWrite)
 Writes more than one byte to the EEPROM with a single WRITE cycle.

Detailed Description

This file contains all the functions prototypes for the stm32_eval_i2c_ee firmware driver.

Author:
MCD Application Team
Version:
V4.3.0
Date:
10/15/2010

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2010 STMicroelectronics

Definition in file stm32_eval_i2c_ee.h.

STM32F10x Standard Peripherals Library: Footer

 

 

 

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