GPIO Services: Difference between revisions

No edit summary
Line 66: Line 66:
|-
|-
| 0x00070040
| 0x00070040
| GetIRGPIO(u32 bitmask) Output u32 is written to cmdreply[2].
| [[GPIO:GetGPIOData|GetGPIOData]]
| 0x10147000, 0x10147010, 0x10147014, 0x10147020, 0x10147028
| 0x10147000, 0x10147010, 0x10147014, 0x10147020, 0x10147028
|-
|-
| 0x00080080
| 0x00080080
| SetIRGPIO(u32 unk1,u32 unk2)
| [[GPIO:SetGPIOData|SetGPIOData]]
| 0x10147010, 0x10147014, 0x10147020, 0x10147028
| 0x10147010, 0x10147014, 0x10147020, 0x10147028
|-
|-
Line 83: Line 83:


=GPIO Bitmask=
=GPIO Bitmask=
The bitmask used by GetIRGPIO(and likely others) determines which bits in the GPIO registers to access. The output value from GetIRGPIO uses the same format as the bitmask: the values of bits in the output field are set to the value of GPIO data when those bits are set in the input bitmask.
The bitmask used by the service commands determines which bits in the GPIO registers to access. The output value from [[GPIO:GetGPIOData|GetGPIOData]] uses the same format as the bitmask: the values of bits in the output field are set to the value of GPIO data when those bits are set in the input bitmask.


{| class="wikitable" border="1"
{| class="wikitable" border="1"