eeprom_low.h

来自「在AVR 平台下的控制代码,通过CAN控制」· C头文件 代码 · 共 30 行

H
30
字号

#ifndef __EEPROM_LOW_H
#define __EEPROM_LOW_H

#ifdef __cplusplus
extern "C" {
#endif

#define _EEPROM_IS_EXIST_          1
#define _EEPROM_IS_INITIALIZED_    2

#define _EEPROM_ERASED_       0
#define _EEPROM_INITIALIZED_  1

Void tdEEPROMWrite(Word wSubAddress, Byte * rpBuf, Word wLength);
Void tdEEPROMRead(Word wSubAddress, Byte * gpBuf, Word wLength);
Void tdEEPROMWriteByte(Word wSubAddress, Byte ucValue);
Byte tdEEPROMReadByte(Word wSubAddress);

/* must call the following function first to change device */
Bool tdEEPROMSelectDevice(Byte ucDeviceAddress);


#ifdef __cplusplus
};
#endif

#endif

⌨️ 快捷键说明

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