GPIO Services: Difference between revisions
TimmSkiller (talk | contribs) |
|||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 41: | Line 41: | ||
! Uses [[GPIO_Registers|GPIO Regs]] | ! Uses [[GPIO_Registers|GPIO Regs]] | ||
|- | |- | ||
| | | 0x00010040 | ||
| | | u32 GetRegPart1(u32 mask) | ||
| 0x10147010, 0x10147020 | | 0x10147010, 0x10147020 | ||
|- | |- | ||
| 0x00020080 | | 0x00020080 | ||
| | | void SetRegPart1(u32 value, u32 mask) | ||
| 0x10147010, 0x10147020 | | 0x10147010, 0x10147020 | ||
|- | |- | ||
| | | 0x00030040 | ||
| | | u32 GetRegPart2(u32 mask) | ||
| 0x10147010, 0x10147024 | | 0x10147010, 0x10147024 | ||
|- | |- | ||
| 0x00040080 | | 0x00040080 | ||
| | | u32 SetRegPart2(u32 value, u32 mask) | ||
| 0x10147010, 0x10147024 | | 0x10147010, 0x10147024 | ||
|- | |- | ||
| | | 0x00050040 | ||
| | | u32 GetInterruptMask(u32 mask) | ||
| 0x10147010, 0x10147024 | | 0x10147010, 0x10147024 | ||
|- | |- | ||
| 0x00060080 | | 0x00060080 | ||
| | | void SetInterruptMask(u32 value, u32 mask) | ||
| 0x10147010, 0x10147024 | | 0x10147010, 0x10147024 | ||
|- | |- | ||
| Line 160: | Line 160: | ||
| 0x20 | | 0x20 | ||
| gpio:MCU, gpio:NWM | | gpio:MCU, gpio:NWM | ||
| | | NWM-sysmodule, MCU-sysmodule | ||
| ? | | WiFi mode. 0 = CTR, 1 = "MP" (DS WiFi?) | ||
|- | |- | ||
| 6 | | 6 | ||
| Line 172: | Line 172: | ||
| 0x80 | | 0x80 | ||
| gpio:IR | | gpio:IR | ||
| | | Boot11 | ||
| ? | | ? | ||
|- | |- | ||
| Line 178: | Line 178: | ||
| 0x100 | | 0x100 | ||
| gpio:HID | | gpio:HID | ||
| | | HID sysmodule | ||
| | | Used with gyroscope | ||
|- | |- | ||
| 9 | | 9 | ||
| Line 190: | Line 190: | ||
| 0x400 | | 0x400 | ||
| gpio:IR | | gpio:IR | ||
| IR-sysmodule | | IR-sysmodule, Boot11 | ||
| IR [[IRU:SetIRLEDState|send]]. 1 = IR LED enable, 0 = IR LED disable. | | IR [[IRU:SetIRLEDState|send]]. 1 = IR LED enable, 0 = IR LED disable. | ||
|- | |- | ||
| Line 220: | Line 220: | ||
| 0x8000 | | 0x8000 | ||
| gpio:MCU | | gpio:MCU | ||
| | | MCU-sysmodule | ||
| | | MCU Interrupt. | ||
|- | |- | ||
| 16 | | 16 | ||
| Line 238: | Line 238: | ||
| 0x40000 | | 0x40000 | ||
| gpio:MCU, gpio:NWM | | gpio:MCU, gpio:NWM | ||
| NWM-sysmodule | | NWM-sysmodule, MCU-sysmodule | ||
| Wifi enable. 1=Enabled, 0=Disabled. | | Wifi enable. 1=Enabled, 0=Disabled. | ||
|} | |} | ||