📄 sst25vf016b_soft.h
字号:
#ifndef _SST25VF016B_SOFT_H
#define _SST25VF016B_SOFT_H
#define uchar unsigned char
#define uint unsigned int
#define ulong unsigned long
/* Function Prototypes */
sbit CE = P3^0;
sbit MOSI = P3^5;
sbit SCK = P3^2;
sbit SO = P3^1;
//sbit RES_SST=P2^7;
void init();
void SPI_CFG(uchar spicfg,uchar spickr,uchar spicn);
void Send_Byte(uchar out);
uchar Get_Byte();
void Poll_SO();
uchar Read_Status_Register();
void EWSR();
void WRSR(byte);
void WREN();
void WRDI();
void EBSY();
void DBSY();
uchar Read_ID(ID_addr);
ulong Jedec_ID_Read();
uchar Read(ulong Dst);
void Read_Cont(ulong Dst, ulong no_bytes);
uchar HighSpeed_Read(ulong Dst);
void HighSpeed_Read_Cont(ulong Dst, ulong no_bytes);
void Byte_Program(ulong Dst, uchar byte);
void Auto_Add_IncA(ulong Dst, uchar byte1, uchar byte2);
void Auto_Add_IncB(uchar byte1, uchar byte2);
void Auto_Add_IncA_EBSY(ulong Dst, uchar byte1, uchar byte2);
void Auto_Add_IncB_EBSY(uchar byte1, uchar byte2);
void Chip_Erase();
void Sector_Erase(ulong Dst);
void Block_Erase_32K(ulong Dst);
void Block_Erase_64K(ulong Dst);
void Wait_Busy();
void Wait_Busy_AAI();
void WREN_Check();
void WREN_AAI_Check();
void Verify(uchar byte, uchar cor_byte);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -