# CARD_WriteAndVerifyFlash

## C Specification

      #include <nitro/card.h>

      static inline BOOL CARD_WriteAndVerifyFlash(u32 dst, const void *src, u32 len);

## Description

This function writes data to the FLASH device, and then performs a comparison on that written data.

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.

## Internal Operations

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 transmitted

## Return Values

Returns a value of TRUE if the processing is correct and successful. Returns a value of FALSE otherwise.

## See Also

`CARD_GetResultCode` `CARD_IsBackupFlash`, `CARD_WriteAndVerifyFlashAsync`, `CARD_ReadFlash`, `CARD_WriteFlash`, `CARD_VerifyFlash`,

## Revision History

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