<< Previous | Next >>

nf_InitDriver

int nf_InitDriver( mbr_drvr * driver, void * device_list );

Description

Initializes the NAND flash controller.

Parameters

driver
Empty mbr_drvr structure. It must be initialized with this function before it can be used with the FAT file system. More information on this structure can be found in the Dynamic C Module document titled, "FAT File System User's Manual," available on the Rabbit Semiconductor website.

device_list
If not null, this is a pointer to the head of a linked list of nf_device structures for NAND flash devices that have each already been initialized by calling nf_initDevice().

If device_list is null, then this function attempts to initialize all NAND flash devices and provide a default linked list of nf_device structures in order from device number 0 on up. If the initialization of a NAND flash device is unsuccessful, then its nf_device structure is not entered into the linked list.

Return value

 0: Success
<0: Negative value of a FAT file system error code

Library

NFLASH_FAT.LIB (This function was introduced in Dynamic C 9.01)


Dynamic C Functions << Previous | Next >> rabbit.com