void nuPiWriteSram(u32 addr, void* buf_ptr, u32 size)
addr SRAM address
buf_ptr pointer to the buffer
size size of data to be transferred
Writes data to SRAM
Uses the PI to DMA transfer data from the buffer location in RDRAM to SRAM. The transfer destination ROM address must be 2-byte aligned. The pointer to the transfer origin buffer must be 8-byte aligned. This function is a macro for the nuPiReadWriteSram function.
nuPiInitSram, nuPiReadWriteSram, and nuPiReadSram