PXIDEV:SPIWriteRead

PXIDEV:SPIWriteRead

Request #

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

Response #

Index WordDescription
0Header code
1Result code
2Bytes Read

Description #

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.