Function

    nuPiWriteSram (Macro)

Syntax

    void nuPiWriteSram(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
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.

See Also
nuPiInitSram
nuPiReadWriteSram
nuPiReadSram