SAMV71 Xplained Ultra Software Package 1.0

NandFlashModel.h File Reference

Go to the source code of this file.

Data Structures

struct  NandFlashModel
 Describes a particular model of NandFlash device. More...

Defines

#define NandFlashModel_DATABUS8   (0 << 0)
#define NandFlashModel_DATABUS16   (1 << 0)
#define NandFlashModel_COPYBACK   (1 << 1)

Functions

uint8_t NandFlashModel_Find (const struct NandFlashModel *modelList, uint32_t size, uint32_t id, struct NandFlashModel *model)
uint8_t NandFlashModel_TranslateAccess (const struct NandFlashModel *model, uint32_t address, uint32_t size, uint16_t *block, uint16_t *page, uint16_t *offset)
struct NandSpareSchemeNandFlashModel_GetScheme (const struct NandFlashModel *model)
uint8_t NandFlashModel_GetDeviceId (const struct NandFlashModel *model)
uint16_t NandFlashModel_GetDeviceSizeInBlocks (const struct NandFlashModel *model)
uint32_t NandFlashModel_GetDeviceSizeInPages (const struct NandFlashModel *model)
unsigned long long NandFlashModel_GetDeviceSizeInBytes (const struct NandFlashModel *model)
uint32_t NandFlashModel_GetDeviceSizeInMBytes (const struct NandFlashModel *model)
uint16_t NandFlashModel_GetBlockSizeInPages (const struct NandFlashModel *model)
uint32_t NandFlashModel_GetBlockSizeInBytes (const struct NandFlashModel *model)
uint16_t NandFlashModel_GetPageDataSize (const struct NandFlashModel *model)
uint8_t NandFlashModel_GetPageSpareSize (const struct NandFlashModel *model)
uint8_t NandFlashModel_GetDataBusWidth (const struct NandFlashModel *model)
uint8_t NandFlashModel_HasSmallBlocks (const struct NandFlashModel *model)
uint8_t NandFlashModel_SupportsCopyBack (const struct NandFlashModel *model)

Detailed Description

Type and methods for manipulating NandFlash models.

  1. Find the model of a NandFlash using its device ID with the NandFlashModel_Find function.
  1. Retrieve parameters of a NandFlash model using the following functions:
    • NandFlashModel_GetDeviceId
    • NandFlashModel_GetDeviceSizeInBlocks
    • NandFlashModel_GetDeviceSizeInPages
    • NandFlashModel_GetDeviceSizeInBytes
    • NandFlashModel_GetBlockSizeInPages
    • NandFlashModel_GetBlockSizeInBytes
    • NandFlashModel_GetPageDataSize
    • NandFlashModel_GetPageSpareSize
    • NandFlashModel_GetDataBusWidth
    • NandFlashModel_UsesSmallBlocksRead
    • NandFlashModel_UsesSmallBlocksWrite

Definition in file NandFlashModel.h.


Define Documentation

#define NandFlashModel_COPYBACK   (1 << 1)

The Nand supports the copy-back function (internal page-to-page copy).

Definition at line 77 of file NandFlashModel.h.

#define NandFlashModel_DATABUS16   (1 << 0)

Indicates the Nand uses a 16-bit databus.

Definition at line 74 of file NandFlashModel.h.

#define NandFlashModel_DATABUS8   (0 << 0)

NandFlashModel_opts NandFlashModel options

  • NandFlashModel_DATABUS8
  • NandFlashModel_DATABUS16
  • NandFlashModel_COPYBACK Indicates the Nand uses an 8-bit databus.

Definition at line 71 of file NandFlashModel.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines