PXIDEV:SPIMultiWriteRead

PXIDEV:SPIMultiWriteRead

Request #

Index WordDescription
0Header code [0x000D0688]
1-2Header
3Header Size
4Header TransferOption
5-6Header WaitOperation
7Write Buffer 1 Size
8Write Buffer 1 TransferOption
9-10Write Buffer 1 WaitOperation
11Read Buffer 1 Size
12Read Buffer 1 TransferOption
13-14Read Buffer 1 WaitOperation
15Write Buffer 2 Size
16Write Buffer 2 TransferOption
17-18Write Buffer 2 WaitOperation
19Read Buffer 2 Size
20Read Buffer 2 TransferOption
21-22Read Buffer 2 WaitOperation
23-24Footer
25Footer Size
26Footer TransferOption
27(WriteBuffer1Size << 8) | 0x6
28Write Buffer 1 Pointer
29(WriteBuffer2Size << 8) | 0x16
30Write Buffer 2 Pointer
31(ReadBuffer1Size << 8) | 0x24
32Read Buffer 1 Pointer
33(ReadBuffer2Size << 8) | 0x34
34Read Buffer 2 Pointer

Response #

Index WordDescription
0Header code
1Result code

Description #

Writes the header to the CARDSPI FIFO, writes the first write buffer, reads the response to the first read buffer, writes the second write buffer, reads the response to the second read buffer, and writes the footer. To use this, the ARM9 Access Control bit for SPICARD must be set in one of the currently running ARM11 processes.

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