PXIDEV:ReadCTRCARD Cmd42

From 3dbrew
Revision as of 08:17, 21 January 2016 by Steveice10 (talk | contribs) (Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00030102] |- | 1 | Buffer Size |- | 2 | Sector Offset |- | 3 | Sector Count |...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Request[edit]

Index Word Description
0 Header code [0x00030102]
1 Buffer Size
2 Sector Offset
3 Sector Count
4 u8, SectorSize
5 (Size << 8) | 0x4
6 Buffer Pointer

Response[edit]

Index Word Description
0 Header code
1 Result code

Description[edit]

Reads from CTRCARD at an offset. The 32-bit words of the command written to the CTRCARD_CMD register are "0x42000000 | (SectorOffset >> 23), SectorOffset << 9, 0, 0"