eeprom._h

来自「单片机中的中断处理模块」· _H 代码 · 共 34 行

_H
34
字号
/*
**  Header file : rteeprom.h
*/
#ifdef _AVR
/* AVR EEPROM real-time access functions */
#ifndef		__RTEEPROM__H
#define		__RTEEPROM__H

// real time EEPROM access functions
// these work for devices with more than 256 bytes of EEPROM

// These functions are provided for real-time systems where waiting for a
// previous write operation to complete may not be acceptable. 
// These functions do not wait for any previous eeprom function to complete.
// the user is responsible for tresting that the eeprom is ready for the
// intended operation.

// function to test if the EEPROM is ready for a read or write operation
// returns non zero if ready, zero if not ready 
unsigned char RTEEPROMReady(void);

// function to initiate an EEPROM write
// writes the specified data byte to the specified location
// this will fail if the EEPROM is not ready!
void RTEEPROMwrite(int location, unsigned char databyte);

// function to read from the EEPROM
// reads a byte from the specified location
// this will fail if the EEPROM is not ready!
unsigned char RTEEPROMread(int location);

#endif
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?