| Nano100BN Series BSP V3.03.002 The Board Support Package for Nano100BN Series

NuEdu-Basic01_SPI_Flash.h
Go to the documentation of this file.
1 /**************************************************************************/
12 #ifndef __NuEdu_Basic01_SPI_FLASH_H__
13 #define __NuEdu_Basic01_SPI_FLASH_H__
14
26 /*---------------------------------------------------------------------------------------------------------*/
27 /* Functions */
28 /*---------------------------------------------------------------------------------------------------------*/
29 extern void Open_SPI_Flash(void);
30 extern unsigned int SpiFlash_ReadMidDid(void);
31 extern void SpiFlash_ChipErase(void);
32 extern unsigned int SpiFlash_ReadStatusReg1(void);
33 extern unsigned int SpiFlash_ReadStatusReg2(void);
34 extern void SpiFlash_WaitReady(void);
35 extern void SpiFlash_PageProgram(unsigned char *DataBuffer, unsigned int StartAddress, unsigned int ByteCount);
36 extern void SpiFlash_ReadData(unsigned char *DataBuffer, unsigned int StartAddress, unsigned int ByteCount);
37
38 #endif
39 /* end of group Nano130_Basic01_FUNCTIONS */
40 /* end of group NuEdu-SDK-Nano130_Basic01 */
42 /* end of group NANO100_Library */
44
45 /*** (C) COPYRIGHT 2013-2014 Nuvoton Technology Corp. ***/
SpiFlash_ChipErase
void SpiFlash_ChipErase(void)
This function do the chip erasing to SPI Flash device.
Definition: NuEdu-Basic01_SPI_Flash.c:127
SpiFlash_ReadData
void SpiFlash_ReadData(unsigned char *DataBuffer, unsigned int StartAddress, unsigned int ByteCount)
This function do the data reading from SPI Flash device.
Definition: NuEdu-Basic01_SPI_Flash.c:335
SpiFlash_ReadStatusReg2
unsigned int SpiFlash_ReadStatusReg2(void)
Read back the Status Register 2 from SPI Flash device.
Definition: NuEdu-Basic01_SPI_Flash.c:203
SpiFlash_PageProgram
void SpiFlash_PageProgram(unsigned char *DataBuffer, unsigned int StartAddress, unsigned int ByteCount)
This function do the page programming to SPI Flash device.
Definition: NuEdu-Basic01_SPI_Flash.c:261
SpiFlash_WaitReady
void SpiFlash_WaitReady(void)
Waiting for the BUSY bit of SPI Flash that be cleared to 0.
Definition: NuEdu-Basic01_SPI_Flash.c:237
SpiFlash_ReadMidDid
unsigned int SpiFlash_ReadMidDid(void)
Read back the Manufacturer ID and Device ID from SPI Flash device.
Definition: NuEdu-Basic01_SPI_Flash.c:71
Open_SPI_Flash
void Open_SPI_Flash(void)
Open GPIO port for SPI interface and configure this SPI controller as Master, MSB first,...
Definition: NuEdu-Basic01_SPI_Flash.c:43
SpiFlash_ReadStatusReg1
unsigned int SpiFlash_ReadStatusReg1(void)
Read back the Status Register 1 from SPI Flash device.
Definition: NuEdu-Basic01_SPI_Flash.c:169