25lc320.h
来自「nrf9e5 nordic公司出品的带有无线发送接收的单片机的bootloade」· C头文件 代码 · 共 24 行
H
24 行
#ifndef _25LC320_H__200701181050__INCLUDED_
#define _25LC320_H__200701181050__INCLUDED_
#define _25LC320_READ 0x03 // Read data from memory array beginning at selected address
#define _25LC320_WRITE 0x02 // Write data to memory array beginning at selected address
#define _25LC320_WRDI 0x04 // Reset the write enable latch(disable write operations)
#define _25LC320_WREN 0x06 // Set the write enable latch(enable write operations)
#define _25LC320_RDSR 0x05 // Read Status register
#define _25LC320_WRSR 0x01 // Write Status register
#define _25LC320_PAGE_SIZE 64// 32
#define Wait_25LC320_IDLE \
{while (_25LC320_ReadStatus() & 0x01) ;}
extern void Init25lc320(void);
//extern void _25LC320_ReadByteInPage(WORD data addr);//, BYTE idata *buf);
extern void _25LC320_WriteByteInPage(WORD data addr, BYTE idata *buf);
//extern BYTE _25LC320_ReadStatus(void);
//extern void _25LC320_SetWEL(BYTE data in);
extern void _25LC320_WriteStatus(BYTE data in);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?