Sensorian  1.0
C API Reference Guide Library
S25FL204K.c File Reference

S25FL204K driver. More...

#include "S25FL204K.h"
#include "SPI.h"

Go to the source code of this file.

Functions

void S25FL_Setup (void)
 Setup SPI and IOs connected to Serial FLASH. More...
 
void S25FL_WriteByte (unsigned char data, unsigned long address)
 Write a byte to the address specified (24 bit address) More...
 
unsigned char S25FL_ReadByte (unsigned long address)
 Read a byte from the specified 24 bit address. More...
 
void S25FL_WriteArray (unsigned long address, unsigned char *pData, unsigned int arrayLength)
 Write data array at the specified address , this procedure does page programming. The destination address should be provided. This function is not safe so the user has to check the arguments. More...
 
void S25FL_ReadArray (unsigned long address, unsigned char *pData, unsigned int arrayLength)
 Read an array of data from the given address. More...
 
unsigned int S25FL_ReadID (void)
 This function reads the Manufacturer ID code This procedure Reads the manufacturer's ID and device ID. More...
 
unsigned long S25FL_Jedec_ID_Read (void)
 This procedure Reads the manufacturer's ID (BFh), memory type (25h) and device ID (4Bh). It will use 9Fh as the JEDEC ID command. More...
 
void S25FL_ChipErase (void)
 Erase all chip contents. Erase is slow on flash chips. More...
 
void S25FL_SectorErase (unsigned long address)
 This function erases a 4Kb sector (it erase a page actually) More...
 
void S25FL_BlockErase (unsigned long address)
 This function erases a 64Kb block. More...
 
unsigned char S25FL_IsWriteBusy (void)
 This function reads status register and checks BUSY bit for a write in progress operation.It waits until the device is no longer busy. More...
 
unsigned char S25FL_SReg_Read (unsigned char statReg)
 Read specific Status Register depending on value of statReg. More...
 
void S25FL_SReg_Write (unsigned char statReg)
 This procedure writes a byte to the Status Register. More...
 
void S25FL_DeepSleep (void)
 Puts the flash chip into deep sleep mode. More...
 
void S25FL_WakeUp (void)
 Wakes the flash memory chip from deep sleep mode. More...
 
void S25FL_SetBlockProtection (unsigned char prot)
 Sets the block protection of the chip. More...
 

Detailed Description

S25FL204K driver.

Author
D.Qendri
Date
30 May 2015

Definition in file S25FL204K.c.