stm32100e_eval_fsmc_onenand.h File Reference

This file contains all the functions prototypes for the stm32100e_eval_fsmc_onenand firmware driver. More...

#include "stm32f10x.h"

Go to the source code of this file.

Data Structures

struct  OneNAND_IDTypeDef

Defines

#define OneNAND_CMD_ERASE   0x0094
 OneNAND memory command.
#define OneNAND_CMD_ERASE_MULTI_BLOCK_VERIFY_READ   0x0071
#define OneNAND_CMD_MULTIPLE_ERASE   0x0095
#define OneNAND_CMD_PROGRAM   0x001A
#define OneNAND_CMD_READ_ID   0x0090
#define OneNAND_CMD_RESET   0x00F0
#define OneNAND_REG_AMOUNTOFBUFFERS   ((uint32_t)0x1E00A)
#define OneNAND_REG_BOOTBUFFERSIZE   ((uint32_t)0x1E008)
#define OneNAND_REG_COMMAND   ((uint32_t)0x1E440)
#define OneNAND_REG_CONTROLSTATUS   ((uint32_t)0x1E480)
#define OneNAND_REG_DATABUFFERSIZE   ((uint32_t)0x1E006)
#define OneNAND_REG_DEVICEID   ((uint32_t)0x1E002)
#define OneNAND_REG_ECCMAINAREA1   ((uint32_t)0x1FE02)
#define OneNAND_REG_ECCMAINAREA2   ((uint32_t)0x1FE06)
#define OneNAND_REG_ECCMAINAREA3   ((uint32_t)0x1FE0A)
#define OneNAND_REG_ECCMAINAREA4   ((uint32_t)0x1FE0E)
#define OneNAND_REG_ECCSPAREAREA1   ((uint32_t)0x1FE04)
#define OneNAND_REG_ECCSPAREAREA2   ((uint32_t)0x1FE08)
#define OneNAND_REG_ECCSPAREAREA3   ((uint32_t)0x1FE0C)
#define OneNAND_REG_ECCSPAREAREA4   ((uint32_t)0x1FE10)
#define OneNAND_REG_ECCSTATUS   ((uint32_t)0x1FE00)
#define OneNAND_REG_INTERRUPT   ((uint32_t)0x1E482)
#define OneNAND_REG_MANUFACTERID   ((uint32_t)0x1E000)
 OneNand Register description.
#define OneNAND_REG_STARTADDRESINT8_T   ((uint32_t)0x1E20E)
#define OneNAND_REG_STARTADDRESS1   ((uint32_t)0x1E200)
#define OneNAND_REG_STARTADDRESS3   ((uint32_t)0x1E204)
#define OneNAND_REG_STARTADDRESS4   ((uint32_t)0x1E206)
#define OneNAND_REG_STARTBLOCKADDRESS   ((uint32_t)0x1E498)
#define OneNAND_REG_STARTBUFFER   ((uint32_t)0x1E400)
#define OneNAND_REG_SYSTEMCONFIGURATION   ((uint32_t)0x1E442)
#define OneNAND_REG_TECHNOLOGY   ((uint32_t)0x1E00C)
#define OneNAND_REG_WRITEPROTECTIONSTATUS   ((uint32_t)0x1E49C)

Enumerations

enum  OneNAND_Status { OneNAND_SUCCESS = 0, OneNAND_ONGOING, OneNAND_ERROR, OneNAND_TIMEOUT }

Functions

void OneNAND_AsynchronousRead (uint16_t *pBuffer, uint32_t ReadAddr, uint32_t NumHalfwordToRead)
 Reads a block of data from the OneNAND memory.
uint16_t OneNAND_EraseBlock (uint32_t BlockAddr)
 Erases the specified OneNAND memory block.
void OneNAND_Init (void)
 Configures the FSMC and GPIOs to interface with the OneNAND memory.
uint16_t OneNAND_ReadControllerStatus (void)
 Reads the OneNAND Controller status.
void OneNAND_ReadID (OneNAND_IDTypeDef *OneNAND_ID)
 Reads OneNAND memory's Manufacturer and Device Code.
uint16_t OneNAND_ReadStatus (void)
 Reads the OneNAND memory status.
void OneNAND_Reset (void)
 Resets the OneNAND memory.
void OneNAND_SynchronousRead (uint16_t *pBuffer, uint32_t ReadAddr, uint32_t NumHalfwordToRead)
 Reads a block of data from the OneNAND memory.
uint16_t OneNAND_Unlock (void)
 Unlocks the OneNAND memory.
uint16_t OneNAND_WriteBuffer (uint16_t *pBuffer, uint32_t WriteAddr, uint32_t NumHalfwordToWrite)
 Writes a Half-word buffer to the OneNAND memory.

Detailed Description

This file contains all the functions prototypes for the stm32100e_eval_fsmc_onenand firmware driver.

Author:
MCD Application Team
Version:
V4.3.0
Date:
10/15/2010

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2010 STMicroelectronics

Definition in file stm32100e_eval_fsmc_onenand.h.

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32