STM8S/A Standard Peripherals Firmware Library
|
This file contains all the functions prototypes for the stm8s_eval_i2c_ee firmware driver. More...
#include "stm8s_eval.h"
Go to the source code of this file.
Defines | |
#define | I2C_SLAVE_ADDRESS7 0xA0 |
#define | I2C_SPEED 200000 |
#define | sEE_FAIL 1 |
#define | sEE_FLAG_TIMEOUT ((uint32_t)0x1000) |
#define | sEE_HW_ADDRESS 0xA0 |
#define | sEE_LONG_TIMEOUT ((uint32_t)(10 * sEE_FLAG_TIMEOUT)) |
#define | sEE_M24C64_32 |
#define | sEE_MAX_TRIALS_NUMBER 150 |
#define | sEE_OK 0 |
#define | sEE_PAGESIZE 32 |
#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: this 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) |
End of critical section: this 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. |
Detailed Description
This file contains all the functions prototypes for the stm8s_eval_i2c_ee firmware driver.
- Author:
- MCD Application Team
- Version:
- V1.0.1
- Date:
- 30-September-2014 Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file stm8s_eval_i2c_ee.h.