NANO100_BSP V3.04.002
The Board Support Package for Nano100BN Series
NuEdu-Basic01_I2C_EEPROM.h
Go to the documentation of this file.
1/**************************************************************************/
12#ifndef __NuEdu_Basic01_I2C_EEPROM_H__
13#define __NuEdu_Basic01_I2C_EEPROM_H__
14
15#include "Nano100Series.h"
16
29/*---------------------------------------------------------------------------------------------------------*/
30/* Functions */
31/*---------------------------------------------------------------------------------------------------------*/
32void I2C_EEPROM_Init(uint8_t u8Divider);
33void I2C_EEPROM_Write(uint16_t u16Address, uint8_t u8Data);
34uint8_t I2C_EEPROM_Read(uint16_t u16Address);
35
36#endif /* end of group Nano130_Basic01_FUNCTIONS */
38 /* end of group NuEdu-SDK-Nano130_Basic01 */
40 /* end of group NANO100_Library */
42
43/*** (C) COPYRIGHT 2013-2014 Nuvoton Technology Corp. ***/
Nano100 series peripheral access layer header file. This file contains all the peripheral register's ...
uint8_t I2C_EEPROM_Read(uint16_t u16Address)
This function do the I2C data reading from EEPROM device.
void I2C_EEPROM_Write(uint16_t u16Address, uint8_t u8Data)
This function do the I2C data writing to EEPROM device.
void I2C_EEPROM_Init(uint8_t u8Divider)
This function initializes the I2C module, bit-rate = 100 kHz and enable the corresponding interrupt.