Perform a destructive 8-bit wide register IO test where the register is accessed using Xil_Out8 and Xil_In8, and comparing the written values by reading them back.
Prototype
s32 Xil_TestIO8(u8 *Addr, s32 Length, u8 Value);
Parameters
The following table lists the Xil_TestIO8
function arguments.
Name | Description |
---|---|
Addr | Pointer to the region of memory to be tested. |
Length | Length of the block. |
Value | Constant used for writing the memory. |
Returns
- -1 is returned for a failure
- 0 is returned for a pass