MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / PADEnable

Function PADEnable

src/dolphin/src/pad/Pad.c:56–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54static void (*SamplingCallback)(void);
55
56inline 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
70inline PADDisable(s32 chan)
71{

Callers 3

PADOriginCallbackFunction · 0.85
PADProbeCallbackFunction · 0.85
PADTypeAndStatusCallbackFunction · 0.85

Calls 3

SIGetResponseFunction · 0.85
SISetCommandFunction · 0.85
SIEnablePollingFunction · 0.85

Tested by

no test coverage detected