Difference between revisions of "QTM Services"

From 3dbrew
Jump to navigation Jump to search
Line 9: Line 9:
 
!  Description
 
!  Description
 
|-
 
|-
| 0x0001....
+
| 0x00010080
|  
+
| (u64 input) Writes an output structure to the data starting at cmdreply[2].
 
|-
 
|-
| 0x0002....
+
| 0x00020080
|  
+
| (u64 input) Writes an output structure to the data starting at cmdreply[2].
 
|-
 
|-
| 0x0003....
+
| 0x00030000
 
|  
 
|  
 
|-
 
|-
| 0x0004....
+
| 0x00040000
 
|  
 
|  
 
|-
 
|-
| 0x0005....
+
| 0x00050040
|  
+
| (u8 input)
 
|-
 
|-
| 0x0006....
+
| 0x00060000
|  
+
| Writes an output u8 to cmdreply[2].
 
|}
 
|}
  
Line 39: Line 39:
 
!  Description
 
!  Description
 
|-
 
|-
| 0x0401....
+
| 0x04010040
|  
+
| (float input)
 
|-
 
|-
| 0x0402....
+
| 0x04020000
|  
+
| Writes float output to cmdreply[2].
 
|-
 
|-
| 0x0403....
+
| 0x04030000
 
|  
 
|  
 
|-
 
|-
| 0x0404....
+
| 0x04040000
 
|  
 
|  
 
|-
 
|-
| 0x0405....
+
| 0x04050040
|  
+
| (u8 input)
 
|-
 
|-
| 0x0406....
+
| 0x04060000
|  
+
| Writes an u8 to cmdreply[2].
 
|-
 
|-
| 0x0407....
+
| 0x04070040
|  
+
| (u8 input)
 
|-
 
|-
| 0x0408....
+
| 0x040801C0
 
|  
 
|  
 
|-
 
|-
| 0x0409....
+
| 0x04090000
|  
+
| Writes an u8 to cmdreply[2].
 
|-
 
|-
| 0x040A....
+
| 0x040A0040
|  
+
| (u8 input)
 
|}
 
|}
  
Line 78: Line 78:
 
!  Description
 
!  Description
 
|-
 
|-
| 0x0801....
+
| 0x08010040
|  
+
| (u8 input)
 
|-
 
|-
| 0x0802....
+
| 0x08020000
 
|  
 
|  
 
|-
 
|-
| 0x0803....
+
| 0x08030040
|  
+
| (u8 input)
 
|-
 
|-
| 0x0804....
+
| 0x08040000
 
|  
 
|  
 
|}
 
|}

Revision as of 23:34, 6 December 2014


QTM is the New_3DS system module in charge of handling head tracking.

QTM services

Command Header Description
0x00010080 (u64 input) Writes an output structure to the data starting at cmdreply[2].
0x00020080 (u64 input) Writes an output structure to the data starting at cmdreply[2].
0x00030000
0x00040000
0x00050040 (u8 input)
0x00060000 Writes an output u8 to cmdreply[2].

The commands under this section are available for all QTM services except for "qtm:c".

QTM user service "qtm:u"

The commands available for this are exactly the same as the commands listed under the "QTM services" section.

QTM system service "qtm:s"

Command Header Description
0x04010040 (float input)
0x04020000 Writes float output to cmdreply[2].
0x04030000
0x04040000
0x04050040 (u8 input)
0x04060000 Writes an u8 to cmdreply[2].
0x04070040 (u8 input)
0x040801C0
0x04090000 Writes an u8 to cmdreply[2].
0x040A0040 (u8 input)

See also the "QTM services" section.

QTM service "qtm:sp"

Command Header Description
0x08010040 (u8 input)
0x08020000
0x08030040 (u8 input)
0x08040000

This service has all of the commands listed under the "QTM services" section and the "qtm:s" section, in addition to the above commands.

QTM service "qtm:c"

Command Header Description
0x0001....
0x0002....
0x0003....
0x0004....
0x0005....

The commands for this service are separate from the commands under the "QTM services" section.