NANO100_BSP V3.04.002
The Board Support Package for Nano100BN Series
Functions
NuEdu-Basic01_I2C_EEPROM.c File Reference

NuEdu-Basic01_I2C_EEPROM driver source file for NuEdu-SDK-Nano130. More...

#include <stdio.h>
#include "Nano100Series.h"
#include "NuEdu-Basic01_I2C_EEPROM.h"
Include dependency graph for NuEdu-Basic01_I2C_EEPROM.c:

Go to the source code of this file.

Functions

__INLINE void I2C_PIN_Init (void)
 Open GPIO port for I2C interface and enable this I2C controller clock and reset it. More...
 
void I2C1_IRQHandler (void)
 I2C interrupt handler. Checks the I2C interrupt flag, clears the corresponding event flag and calls the related handler subroutine. More...
 
void I2C_EEPROM_Init (uint8_t u8Divider)
 This function initializes the I2C module, bit-rate = 100 kHz and enable the corresponding interrupt. More...
 
void I2C_MasterRx (uint32_t u32Status)
 This function checks the status of I2C, sets the related control bit and data if needed when this I2C module is master receiver. More...
 
void I2C_MasterTx (uint32_t u32Status)
 This function checks the status of I2C, sets the related control bit and data if needed when this I2C module is master transmitter. More...
 
void I2C_EEPROM_Write (uint16_t u16Address, uint8_t u8Data)
 This function do the I2C data writing to EEPROM device. More...
 
uint8_t I2C_EEPROM_Read (uint16_t u16Address)
 This function do the I2C data reading from EEPROM device. More...
 

Detailed Description

NuEdu-Basic01_I2C_EEPROM driver source file for NuEdu-SDK-Nano130.

Version
V1.00
Revision
3
Date
14/09/16 9:27a
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.

Definition in file NuEdu-Basic01_I2C_EEPROM.c.