nandflash.c File Reference

EFM32GG_STK3700 nandflash driver. More...

#include <stddef.h>
#include "em_device.h"
#include "em_dma.h"
#include "em_ebi.h"
#include "dmactrl.h"
#include "nandflash.h"
Include dependency graph for nandflash.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool NANDFLASH_AddressValid (uint32_t address)
 Check if an address is valid for the nand flash device.
int NANDFLASH_CopyPage (uint32_t dstAddr, uint32_t srcAddr)
 Copy a page within the device to a new location.
NANDFLASH_Info_TypeDefNANDFLASH_DeviceInfo (void)
 Return a pointer to a NANDFLASH_Info_TypeDef structure, which contain vital nand flash device information.
int NANDFLASH_EccCorrect (uint32_t generatedEcc, uint32_t readEcc, uint8_t *data)
 Check generated ECC against ECC read from device and correct data if possible.
int NANDFLASH_EraseBlock (uint32_t address)
 Erase a block in the nand flash.
int NANDFLASH_Init (int dmaCh)
 Initialize the NANDFLASH module.
int NANDFLASH_MarkBadBlock (uint32_t address)
 Mark a block as bad.
int NANDFLASH_ReadPage (uint32_t address, uint8_t *buffer)
 Read a page from nand device.
int NANDFLASH_ReadSpare (uint32_t address, uint8_t *buffer)
 Read the spare area content of a page.
int NANDFLASH_WritePage (uint32_t address, uint8_t *buffer)
 Write a page in nand device.

Detailed Description

EFM32GG_STK3700 nandflash driver.

Version:
3.20.5

License

(C) Copyright 2014 Silicon Labs, http://www.silabs.com

This file is licensensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.

Definition in file nandflash.c.