    Function

    nuPiReadSram (Macro)

Syntax

    void nuPiReadSram(u32 addr, void* buf_ptr, u32 size)

Arguments

- addr is the SRAM address

- buf_ptr is the pointer to the buffer

- size is the transfer size

Return Value
None

Explanation
Reads data from SRAM

Uses the PI to DMA transfer data from SRAM to the buffer location in RDRAM. The transfer origin ROM address must be 2-byte aligned. The pointer to the transfer destination buffer must be 8-byte aligned. This function is a macro for the nuPiReadWriteSram function.

See Also
nuPiInitSram
nuPiReadWriteSram
nuPiWriteSram