|
SSBM Decomp
|
#include <dolphin.h>#include "__pad.h"#include "os/__os.h"#include <dolphin/os.h>#include <dolphin/pad.h>#include <dolphin/si.h>Data Structures | |
| struct | XY |
Macros | |
| #define | LATENCY 8 |
| #define | PAD_ALL |
Functions | |
| static u16 | GetWirelessID (long chan) |
| static void | SetWirelessID (long chan, u16 id) |
| static void | DoReset (void) |
| static void | PADEnable (long chan) |
| static void | ProbeWireless (long chan) |
| static void | PADProbeCallback (s32 chan, u32 error, OSContext *context) |
| static void | PADDisable (long chan) |
| static void | UpdateOrigin (s32 chan) |
| static void | PADOriginCallback (s32 chan, u32 error, OSContext *context) |
| static void | PADTypeAndStatusCallback (s32 chan, u32 type) |
| static void | PADFixCallback (long unused, unsigned long error, struct OSContext *context) |
| static void | PADResetCallback (long unused, unsigned long error, struct OSContext *context) |
| int | PADReset (unsigned long mask) |
| BOOL | PADRecalibrate (u32 mask) |
| BOOL | PADInit () |
| static void | PADReceiveCheckCallback (s32 chan, unsigned long error) |
| void | PADSetSamplingRate (unsigned long msec) |
| void | __PADTestSamplingRate (unsigned long tvmode) |
| void | PADControlAllMotors (const u32 *commandArray) |
| void | PADControlMotor (s32 chan, u32 command) |
| void | PADSetSpec (u32 spec) |
| unsigned long | PADGetSpec () |
| static void | SPEC0_MakeStatus (s32 chan, PADStatus *status, u32 data[2]) |
| static void | SPEC1_MakeStatus (s32 chan, PADStatus *status, u32 data[2]) |
| static s8 | ClampS8 (s8 var, s8 org) |
| static u8 | ClampU8 (u8 var, u8 org) |
| static void | SPEC2_MakeStatus (s32 chan, PADStatus *status, u32 data[2]) |
| int | PADGetType (long chan, unsigned long *type) |
| BOOL | PADSync (void) |
| void | PADSetAnalogMode (u32 mode) |
| static BOOL | OnReset (BOOL f) |
| static void | PADOriginUpdateCallback (s32 chan, u32 error, OSContext *context) |
| u32 | PADRead (struct PADStatus *status) |
| void | SIRefreshSamplingRate (void) |
| static void | SamplingHandler (__OSInterrupt intr, OSContext *arg1) |
| static PADCallback | PADSetSamplingCallback (PADCallback arg0) |
| BOOL | __PADDisableRecalibration (int arg0) |
Variables | |
| u16 | __OSWirelessPadFixMode |
| static long | ResettingChan = 0x00000020 |
| static unsigned long | XPatchBits = 0xF0000000 |
| static unsigned long | AnalogMode = 0x00000300 |
| static unsigned long | Spec = 0x00000005 |
| static int | Initialized |
| static unsigned long | EnabledBits |
| static unsigned long | ResettingBits |
| static unsigned long | RecalibrateBits |
| static unsigned long | WaitingBits |
| static unsigned long | CheckingBits |
| static unsigned long | PendingBits |
| static unsigned long | Type [4] |
| static struct PADStatus | Origin [4] |
| static u32 | WirelessUnk [4] |
| static void(* | MakeStatus )(long, struct PADStatus *, unsigned long *) |
| static int | SamplingRate |
| static PADCallback | SamplingCallback |
| static OSResetFunctionInfo | ResetFunctionInfo |
| char | CmdReadOrigin [1] = "A" |
| char | CmdCalibrate [3] = "B\0\0" |
| unsigned long | __PADFixBits |
| u8 | GameChoice |
| unsigned long | __PADSpec |
| static XY | XYNTSC [12] |
| static XY | XYPAL [12] |
| #define LATENCY 8 |
| #define PAD_ALL |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| int PADReset | ( | unsigned long | mask | ) |
| BOOL PADInit | ( | ) |
|
static |
| void PADSetSamplingRate | ( | unsigned long | msec | ) |
| void __PADTestSamplingRate | ( | unsigned long | tvmode | ) |
| void PADControlAllMotors | ( | const u32 * | commandArray | ) |
| void PADSetSpec | ( | u32 | spec | ) |
| unsigned long PADGetSpec | ( | void | ) |
| int PADGetType | ( | long | chan, |
| unsigned long * | type ) |
| BOOL PADSync | ( | void | ) |
| void PADSetAnalogMode | ( | u32 | mode | ) |
| void SIRefreshSamplingRate | ( | void | ) |
|
static |
|
static |
| BOOL __PADDisableRecalibration | ( | int | arg0 | ) |
| u16 __OSWirelessPadFixMode |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| char CmdReadOrigin[1] = "A" |
| char CmdCalibrate[3] = "B\0\0" |
|
extern |
| u8 GameChoice |
| unsigned long __PADSpec |
|
static |
|
static |