Function

    nuPiReadWriteSram

Syntax

    void nuPiReadWriteSram(u32 addr, void* buf_ptr, u32 size, s32
    flag)

Arguments

- addr is the SRAM address

- buf_ptr is the pointer to the buffer

- size is the transfer size

- flag is the flag

Return Value
None

Explanation
Reads/writes SRAM data

Uses the PI to read/write data in SRAM. If "flag" is OS_READ, data is read from SRAM into RDRAM. If it is OS_WRITE, data is written from RDRAM into SRAM. The SRAM address must be a multiple of 2. The buffer pointer must be a multiple of 8. To use this function, the SRAM access handle must already be initialized by nuPiInitSram().

See Also
nuPiInitSram
nuPiReadSram
nuPiWriteSram