PXIDEV:SPIWriteRead
Revision as of 06:21, 21 January 2016 by Steveice10 (talk | contribs) (Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x000D0688] |- | 1-2 | Initial Gamecard_Services_PXI#WaitOperation|WaitOperat...")
Request
Index Word | Description |
---|---|
0 | Header code [0x000D0688] |
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
Index Word | Description |
---|---|
0 | Header code |
1 | Result code |
2 | Bytes 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.