PXIDEV:SPIWriteRead

From 3dbrew
Jump to navigation Jump to search

Request[edit]

Index Word Description
0 Header code [0x000E0284]
1-2 Initial WaitOperation
3 Write Buffer Size
4 Write Buffer TransferOption
5-6 Write Buffer WaitOperation
7 Read Buffer Size
8 Read Buffer TransferOption
9-10 Read Buffer WaitOperation
11 (WriteBufferSize << 8) | 0x6
12 Write Buffer Pointer
13 (ReadBufferSize << 8) | 0x24
14 Read Buffer Pointer

Response[edit]

Index Word Description
0 Header code
1 Result code
2 Bytes Read

Description[edit]

Writes data to the CARDSPI FIFO and reads the response. To use this, the ARM9 Access Control bit for SPICARD must be set in one of the currently running ARM11 processes.

If any of the buffers have a size of 0, their respective operation will be skipped.