Changes

2,035 bytes added ,  06:21, 21 January 2016
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x000D0688] |- | 1-2 | Header |- | 3 | Header Size |- | 4 | Header Gamecard_S..."
=Request=
{| class="wikitable" border="1"
|-
! Index Word
! Description
|-
| 0
| Header code [0x000D0688]
|-
| 1-2
| Header
|-
| 3
| Header Size
|-
| 4
| Header [[Gamecard_Services_PXI#TransferOption|TransferOption]]
|-
| 5-6
| Header [[Gamecard_Services_PXI#WaitOperation|WaitOperation]]
|-
| 7
| Write Buffer 1 Size
|-
| 8
| Write Buffer 1 [[Gamecard_Services_PXI#TransferOption|TransferOption]]
|-
| 9-10
| Write Buffer 1 [[Gamecard_Services_PXI#WaitOperation|WaitOperation]]
|-
| 11
| Read Buffer 1 Size
|-
| 12
| Read Buffer 1 [[Gamecard_Services_PXI#TransferOption|TransferOption]]
|-
| 13-14
| Read Buffer 1 [[Gamecard_Services_PXI#WaitOperation|WaitOperation]]
|-
| 15
| Write Buffer 2 Size
|-
| 16
| Write Buffer 2 [[Gamecard_Services_PXI#TransferOption|TransferOption]]
|-
| 17-18
| Write Buffer 2 [[Gamecard_Services_PXI#WaitOperation|WaitOperation]]
|-
| 19
| Read Buffer 2 Size
|-
| 20
| Read Buffer 2 [[Gamecard_Services_PXI#TransferOption|TransferOption]]
|-
| 21-22
| Read Buffer 2 [[Gamecard_Services_PXI#WaitOperation|WaitOperation]]
|-
| 23-24
| Footer
|-
| 25
| Footer Size
|-
| 26
| Footer [[Gamecard_Services_PXI#TransferOption|TransferOption]]
|-
| 27
| (WriteBuffer1Size << 8) <nowiki>|</nowiki> 0x6
|-
| 28
| Write Buffer 1 Pointer
|-
| 29
| (WriteBuffer2Size << 8) <nowiki>|</nowiki> 0x16
|-
| 30
| Write Buffer 2 Pointer
|-
| 31
| (ReadBuffer1Size << 8) <nowiki>|</nowiki> 0x24
|-
| 32
| Read Buffer 1 Pointer
|-
| 33
| (ReadBuffer2Size << 8) <nowiki>|</nowiki> 0x34
|-
| 34
| Read Buffer 2 Pointer
|}

=Response=
{| class="wikitable" border="1"
|-
! Index Word
! Description
|-
| 0
| Header code
|-
| 1
| Result code
|}

=Description=
Writes data to the [[SPICARD_Registers|CARDSPI FIFO]], reads the response, writes more data, and reads the next response. To use this, the [[NCCH/Extended_Header|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.
1,434

edits