| 54 | static void (*SamplingCallback)(void); |
| 55 | |
| 56 | inline void PADEnable(s32 chan) |
| 57 | { |
| 58 | u32 cmd; |
| 59 | u32 chanBit; |
| 60 | u32 data[2]; |
| 61 | |
| 62 | chanBit = PAD_CHAN0_BIT >> chan; |
| 63 | EnabledBits |= chanBit; |
| 64 | SIGetResponse(chan, data); |
| 65 | cmd = (0x40 << 16) | AnalogMode; |
| 66 | SISetCommand(chan, cmd); |
| 67 | SIEnablePolling(EnabledBits); |
| 68 | } |
| 69 | |
| 70 | inline PADDisable(s32 chan) |
| 71 | { |
no test coverage detected