Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
Pad.c File Reference

Functions

static void UpdateOrigin (s32 chan)
 
static void SPEC0_MakeStatus (s32 chan, PADStatus *status, u32 data[2])
 
static void SPEC1_MakeStatus (s32 chan, PADStatus *status, u32 data[2])
 
static void SPEC2_MakeStatus (s32 chan, PADStatus *status, u32 data[2])
 
static BOOL OnReset (BOOL final)
 
static void SamplingHandler (__OSInterrupt interrupt, OSContext *context)
 
static PADSamplingCallback PADSetSamplingCallback (PADSamplingCallback callback)
 
BOOL __PADDisableRecalibration (BOOL disable)
 
static void PADOriginCallback (s32 chan, u32 error, OSContext *context)
 
static void PADOriginUpdateCallback (s32 chan, u32 error, OSContext *context)
 
static void PADProbeCallback (s32 chan, u32 error, OSContext *context)
 
static void PADTypeAndStatusCallback (s32 chan, u32 type)
 
static void PADReceiveCheckCallback (s32 chan, u32 type)
 
void PADEnable (s32 chan)
 
void DoReset (void)
 
void PADDisable (s32 chan)
 
BOOL PADReset (u32 mask)
 
BOOL PADRecalibrate (u32 mask)
 
BOOL PADInit ()
 
u32 PADRead (PADStatus *status)
 
void PADControlMotor (s32 chan, u32 command)
 
void PADSetSpec (u32 spec)
 
s8 ClampS8 (s8 var, s8 org)
 
u8 ClampU8 (u8 var, u8 org)
 
void PADSetAnalogMode (u32 mode)
 
BOOL PADSync (void)
 

Variables

u8 UnkVal
 
u16 __OSWirelessPadFixMode
 
static char__PADVersion = "<< Dolphin SDK - PAD\trelease build: Apr 5 2004 04:14:49 (0x2301) >>"
 
u32 __PADFixBits
 
static u32 Type [4]
 
static PADStatus Origin [4]
 
static s32 ResettingChan = 0x00000020
 
static u32 XPatchBits = PAD_CHAN0_BIT | PAD_CHAN1_BIT | PAD_CHAN2_BIT | PAD_CHAN3_BIT
 
static u32 AnalogMode = 0x00000300
 
static BOOL Initialized
 
static u32 EnabledBits
 
static u32 ResettingBits
 
static u32 RecalibrateBits
 
static u32 WaitingBits
 
static u32 CheckingBits
 
static u32 PendingBits
 
static u32 BarrelBits
 
static u32 Spec = 5
 
static void(* MakeStatus )(s32, PADStatus *, u32[2]) = SPEC2_MakeStatus
 
static f32 CmdReadOrigin = 8.0f
 
static f32 CmdCalibrate = 32.0f
 
static u32 CmdProbeDevice [4]
 
static OSResetFunctionInfo ResetFunctionInfo
 
static void(* SamplingCallback )(void)
 
static BOOL recalibrated
 
u32 __PADSpec
 

Function Documentation

◆ __PADDisableRecalibration()

BOOL __PADDisableRecalibration ( BOOL  disable)

◆ ClampS8()

s8 ClampS8 ( s8  var,
s8  org 
)
inline

◆ ClampU8()

u8 ClampU8 ( u8  var,
u8  org 
)
inline

◆ DoReset()

void DoReset ( void  )
inline

◆ OnReset()

static BOOL OnReset ( BOOL  final)
static

◆ PADControlMotor()

void PADControlMotor ( s32  chan,
u32  command 
)

◆ PADDisable()

void PADDisable ( s32  chan)
inline

◆ PADEnable()

void PADEnable ( s32  chan)
inline

◆ PADInit()

BOOL PADInit ( void  )

◆ PADOriginCallback()

static void PADOriginCallback ( s32  chan,
u32  error,
OSContext context 
)
static

◆ PADOriginUpdateCallback()

static void PADOriginUpdateCallback ( s32  chan,
u32  error,
OSContext context 
)
static

◆ PADProbeCallback()

static void PADProbeCallback ( s32  chan,
u32  error,
OSContext context 
)
static

◆ PADRead()

u32 PADRead ( PADStatus status)

◆ PADRecalibrate()

BOOL PADRecalibrate ( u32  mask)

◆ PADReceiveCheckCallback()

static void PADReceiveCheckCallback ( s32  chan,
u32  type 
)
static

◆ PADReset()

BOOL PADReset ( u32  mask)

◆ PADSetAnalogMode()

void PADSetAnalogMode ( u32  mode)

◆ PADSetSamplingCallback()

PADSamplingCallback PADSetSamplingCallback ( PADSamplingCallback  callback)
static

◆ PADSetSpec()

void PADSetSpec ( u32  spec)

◆ PADSync()

BOOL PADSync ( void  )
inline

◆ PADTypeAndStatusCallback()

static void PADTypeAndStatusCallback ( s32  chan,
u32  type 
)
static

◆ SamplingHandler()

static void SamplingHandler ( __OSInterrupt  interrupt,
OSContext context 
)
static

◆ SPEC0_MakeStatus()

static void SPEC0_MakeStatus ( s32  chan,
PADStatus status,
u32  data[2] 
)
static

◆ SPEC1_MakeStatus()

static void SPEC1_MakeStatus ( s32  chan,
PADStatus status,
u32  data[2] 
)
static

◆ SPEC2_MakeStatus()

static void SPEC2_MakeStatus ( s32  chan,
PADStatus status,
u32  data[2] 
)
static

◆ UpdateOrigin()

static void UpdateOrigin ( s32  chan)
static

Variable Documentation

◆ __OSWirelessPadFixMode

u16 __OSWirelessPadFixMode

◆ __PADFixBits

u32 __PADFixBits
extern

◆ __PADSpec

u32 __PADSpec

◆ __PADVersion

char* __PADVersion = "<< Dolphin SDK - PAD\trelease build: Apr 5 2004 04:14:49 (0x2301) >>"
static

◆ AnalogMode

u32 AnalogMode = 0x00000300
static

◆ BarrelBits

u32 BarrelBits
static

◆ CheckingBits

u32 CheckingBits
static

◆ CmdCalibrate

f32 CmdCalibrate = 32.0f
static

◆ CmdProbeDevice

u32 CmdProbeDevice[4]
static

◆ CmdReadOrigin

f32 CmdReadOrigin = 8.0f
static

◆ EnabledBits

u32 EnabledBits
static

◆ Initialized

BOOL Initialized
static

◆ MakeStatus

void(* MakeStatus) (s32, PADStatus *, u32[2]) ( s32  ,
PADStatus ,
u32  [2] 
) = SPEC2_MakeStatus
static

◆ Origin

PADStatus Origin[4]
static

◆ PendingBits

u32 PendingBits
static

◆ RecalibrateBits

u32 RecalibrateBits
static

◆ recalibrated

BOOL recalibrated
static

◆ ResetFunctionInfo

OSResetFunctionInfo ResetFunctionInfo
static
Initial value:
= {
0x0000007F,
}
static BOOL OnReset(BOOL final)
Definition Pad.c:757

◆ ResettingBits

u32 ResettingBits
static

◆ ResettingChan

s32 ResettingChan = 0x00000020
static

◆ SamplingCallback

void(* SamplingCallback) (void) ( void  )
static

◆ Spec

u32 Spec = 5
static

◆ Type

u32 Type[4]
static

◆ UnkVal

u8 UnkVal

◆ WaitingBits

u32 WaitingBits
static

◆ XPatchBits