Function


nuPiReadSram (Macro)


Syntax

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

Arguments

addr         SRAM address 
buf_ptr      pointer to the buffer 
size         size of data to be transferred

Description

Reads data from SRAM

Uses the PI to DMA transfer data from SRAM to the buffer location in RDRAM. The transfer origin(from) 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, and nuPiWriteSram