<< Previous | Next >>

nf_isBusyRBHW

int nf_isBusyRBHW( nf_device * dev );

Description

Returns 1 if the specified NAND flash device is busy. Uses the hardware Ready/Busy check method, and can be used to determine the device's busy status even at the start of a read page command. Note that this function briefly enforces the Ready/Busy input port bit, reads the pin status, and then restores the port bit to its previous input/output state. There should be little or no visible disturbance of the LED output which shares the NAND flash's Ready/Busy status line.

Parameters

dev
Pointer to an initialized nf_device structure for the particular NAND flash chip.

Return value

 1: Busy
 0: Ready, (not currently transferring a page to be read, or erasing or writing a page)
-1: Error (unsupported Ready/Busy input port)

Library

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

See Also

nf_isBusyStatus


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