CARD_WriteFlash


C Specification

#include <nitro/card.h>

BOOL	CARD_WriteFlash(u32 dst, const void *src, u32 len);

Description

This function writes data to the FLASH device. This function will not return the control until the processing has completed.

This function returns a value of TRUE if the process succeeds, and returns a value of FALSE if the process fails. To obtain the detailed result value when the process fails, call the CARD_GetResultCode function.

When using this function, the access bus must be locked in advance using the CARD_LockBackup function.

This function performs communications internally with the I/O processor through PXI. Be aware that the process will not complete if the PXI interrupt is not valid.

Arguments

dst The FLASH address of the transmission destination
src The memory address of the transmission source
len The byte length of the data to be written

Return Values

Returns TRUE if the process succeeded. Returns FALSE otherwise.

See Also

CARD_GetResultCode, CARD_IsBackupFlash, CARD_WriteFlashAsync, CARD_ReadFlash, CARD_VerifyFlash, CARD_WriteAndVerifyFlash

Revision History

08/31/2004 Added the description for the CARD_GetResultCode function.
08/23/2004 Initial Version