nandps: xnandps.c File Reference

| nandps Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Functions | Variables
xnandps.c File Reference

## Functions
void | XNandPs_SendCommand (XNandPs *InstancePtr, XNandPs_CommandFormat *Command, int Page, int Column)
| This function sends a NAND command to the flash device. More...
void | XNandPs_InitBbtDesc (XNandPs *InstancePtr)
| This function initializes the Bad Block Table(BBT) descriptors with a predefined pattern for searching Bad Block Table(BBT) in flash. More...
int | XNandPs_ScanBbt (XNandPs *InstancePtr)
| This function reads the Bad Block Table(BBT) if present in flash. More...
u8 | Onfi_CmdReadStatus (XNandPs *InstancePtr)
| This function sends read status command to the flash device. More...
int | Onfi_NandInit (XNandPs *InstancePtr)
| This function initializes the NAND flash and gets the geometry information. More...
int | XNandPs_CfgInitialize (XNandPs *InstancePtr, XNandPs_Config *ConfigPtr, u32 SmcBaseAddr, u32 FlashBaseAddr)
| This function initializes a specific XNandPs device/instance. More...
int | XNandPs_Read (XNandPs *InstancePtr, u64 Offset, u32 Length, void *DestPtr, u8 *UserSparePtr)
| This function reads the data from the Flash device and copies it into the specified user buffer. More...
int | XNandPs_ReadCache (XNandPs *InstancePtr, u64 Offset, u32 Length, void *DestPtr, u8 *UserSparePtr)
| This function reads the data from the Flash device using read page cache command and copies it into the specified user buffer. More...
int | XNandPs_Write (XNandPs *InstancePtr, u64 Offset, u32 Length, void *SrcPtr, u8 *UserSparePtr)
| This function programs the flash device(s) with data specified in the user buffer. More...
int | XNandPs_WriteCache (XNandPs *InstancePtr, u64 Offset, u32 Length, void *SrcPtr, u8 *UserSparePtr)
| This function programs the flash device(s) with data specified in the user buffer using program cache command. More...
int | XNandPs_ReadSpareBytes (XNandPs *InstancePtr, u32 Page, u8 *Buf)
| This function reads the spare area of a page. More...
int | XNandPs_WriteSpareBytes (XNandPs *InstancePtr, u32 Page, u8 *Buf)
| This function write to the spare area of a page. More...
int | XNandPs_EraseBlock (XNandPs *InstancePtr, u32 BlockNum)
| This function erases a specific block in the NAND device. More...

## Variables
u32 | NandOob16 [] = {13, 14, 15}
| Ecc position for 16 bytes spare area. More...
u32 | NandOob32 [] = {26, 27, 28, 29, 30, 31}
| Ecc position for 32 bytes spare area. More...
u32 | NandOob64 []
| Ecc position for 64 bytes spare area. More...
XNandPs_CommandFormat | OnfiCommands []
| ONFI commands. More...