Difference between revisions of "CDCCHK:ReadSPI"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [SPI1=0x000100C0 SPI2=0x000200C0] |- | 1 | u8 unknown (seems to be always zero)...")
 
m
 
Line 9: Line 9:
 
|-
 
|-
 
| 1
 
| 1
| u8 unknown (seems to be always zero)
+
| u8 page
 
|-
 
|-
 
| 2
 
| 2
| u8 command
+
| u8 offset
 
|-
 
|-
 
| 3
 
| 3
Line 44: Line 44:
 
|}
 
|}
  
=Command list=
+
=SPI Data list=
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
CommandID
+
Page:Offset(Size)
 
!  Name
 
!  Name
 
|-
 
|-
| 0x02
+
| 00:02(01)
| u8 GetDeviceVendor
+
| SPIDeviceVendor
 
|-
 
|-
| 0x03
+
| 00:03(01)
| u8 GetDeviceRevision
+
| SPIDeviceRevision
 
|}
 
|}

Latest revision as of 08:48, 21 September 2017

Request[edit]

Index Word Description
0 Header code [SPI1=0x000100C0 SPI2=0x000200C0]
1 u8 page
2 u8 offset
3 u8 size

0x100 bytes after the IPC buffer

Index Word Description
0 (size << 14) | 2
1 Buffer pointer

Response[edit]

Index Word Description
0 Header code
1 Result code

SPI Data list[edit]

Page:Offset(Size) Name
00:02(01) SPIDeviceVendor
00:03(01) SPIDeviceRevision