SAMV71 Xplained Ultra Software Package 1.4

MEDNandFlash.c File Reference

#include "libstoragemedia.h"
#include <string.h>
#include <assert.h>

Go to the source code of this file.

Defines

#define MODEL(interface)   ((struct NandFlashModel *) interface)
 Casts.
#define TRANSLATED(interface)   ((struct TranslatedNandFlash *) interface)
#define min(a, b)   (((a) < (b)) ? (a) : (b))

Functions

void MEDNandFlash_Initialize (sMedia *pMedia, struct TranslatedNandFlash *translated)
 Initializes a media instance to operate on the given NandFlash device.

Detailed Description

Implementation of media layer for the NAND flash.

Definition in file MEDNandFlash.c.


Function Documentation

void MEDNandFlash_Initialize ( sMedia *  pMedia,
struct TranslatedNandFlash *  translated 
)

Initializes a media instance to operate on the given NandFlash device.

Parameters:
media Pointer to a Media instance.
tnf Pointer to the TranslatedNandFlash to use.

Definition at line 461 of file MEDNandFlash.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines