PXIDEV:ReadCTRCARD Cmd42

From 3dbrew
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"