12345678910111213141516171819202122232425262728293031 |
- /*****************************************************************************
- W25Q64.h
- *****************************************************************************/
- #ifndef _W25Q64_H
- #define _W25Q64_H
- /*****************************************************************************/
- #include <stdint.h>
- int W25Q64_Init(void);
- void sFlash_Global_Protect(void);
- void sFlash_Global_Unprotect(void);
- void sFlash_Erase_Chip(void);
- void sFlash_Erase_Sector(uint32_t Dst_Addr);
- void sFlash_Read(uint8_t* pBuffer,uint32_t ReadAddr,uint16_t NumByteToRead);
- void sFlash_Write(uint8_t* pBuffer,uint32_t WriteAddr,uint16_t NumByteToWrite);
- void sFlash_Write_NoCheck(uint8_t* pBuffer,uint32_t WriteAddr,uint16_t NumByteToWrite);
- void sFlash_PowerDown(void);
- void sFlash_WAKEUP(void);
- void sFlash_Unprotect_Sector(uint32_t Dst_Addr);
- void sFlash_Protect_Sector(uint32_t Dst_Addr);
- void W25Q64Test(void);
- void DelayMs(unsigned short ms);
- void sFlash_Write_Enable(void);
- void sFlash_Write_Page(uint8_t* pBuffer,uint32_t WriteAddr,uint16_t NumByteToWrite);
- /*****************************************************************************/
- #endif
- /*****************************************************************************/
|