Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
si.h File Reference

Go to the source code of this file.

Classes

struct  SIControl
 
struct  SIPacket
 
struct  SISteeringControl
 
struct  SISteeringStatus
 

Typedefs

typedef void(* SICallback) (s32 chan, u32 sr, OSContext *context)
 
typedef void(* SITypeCallback) (s32 chan, u32 type)
 
typedef void(* SISteeringCallback) (s32 chan, s32)
 

Functions

BOOL SIBusy (void)
 
BOOL SIIsChanBusy (s32 chan)
 
BOOL SIRegisterPollingHandler (__OSInterruptHandler handler)
 
BOOL SIUnregisterPollingHandler (__OSInterruptHandler handler)
 
void SIInit (void)
 
u32 SISync (void)
 
u32 SIGetStatus (s32 chan)
 
void SISetCommand (s32 chan, u32 command)
 
u32 SIGetCommand (s32 chan)
 
void SITransferCommands (void)
 
u32 SISetXY (u32 x, u32 y)
 
u32 SIEnablePolling (u32 poll)
 
u32 SIDisablePolling (u32 poll)
 
BOOL SIGetResponse (s32 chan, void *data)
 
BOOL SITransfer (s32 chan, void *output, u32 outputBytes, void *input, u32 inputBytes, SICallback callback, OSTime delay)
 
u32 SIGetType (s32 chan)
 
u32 SIGetTypeAsync (s32 chan, SITypeCallback callback)
 
u32 SIDecodeType (u32 type)
 
u32 SIProbe (s32 chan)
 
char * SIGetTypeString (u32 type)
 
void SISetSamplingRate (u32 msec)
 
void SIRefreshSamplingRate (void)
 
void SIInitSteering (void)
 
s32 SIResetSteeringAsync (s32 chan, SISteeringCallback callback)
 
s32 SIResetSteering (s32 chan)
 
s32 SIReadSteering (s32 chan, SISteeringStatus *status)
 
void SIControlSteering (s32 chan, u32 control, s32 level)
 

Variables

u32 __PADFixBits
 
SISteeringControl __SISteering [4]
 
u32 __SISteeringEnableBits
 
BOOL __SIResetSteering
 
void(*)() SISetSteeringSamplingCallback (void(*callback)())
 

Typedef Documentation

◆ SICallback

typedef void(* SICallback) (s32 chan, u32 sr, OSContext *context)

◆ SISteeringCallback

typedef void(* SISteeringCallback) (s32 chan, s32)

◆ SITypeCallback

typedef void(* SITypeCallback) (s32 chan, u32 type)

Function Documentation

◆ SIBusy()

BOOL SIBusy ( void )

◆ SIControlSteering()

void SIControlSteering ( s32 chan,
u32 control,
s32 level )

◆ SIDecodeType()

u32 SIDecodeType ( u32 type)

◆ SIDisablePolling()

u32 SIDisablePolling ( u32 poll)

◆ SIEnablePolling()

u32 SIEnablePolling ( u32 poll)

◆ SIGetCommand()

u32 SIGetCommand ( s32 chan)

◆ SIGetResponse()

BOOL SIGetResponse ( s32 chan,
void * data )

◆ SIGetStatus()

u32 SIGetStatus ( s32 chan)

◆ SIGetType()

u32 SIGetType ( s32 chan)

◆ SIGetTypeAsync()

u32 SIGetTypeAsync ( s32 chan,
SITypeCallback callback )

◆ SIGetTypeString()

char * SIGetTypeString ( u32 type)

◆ SIInit()

void SIInit ( void )

◆ SIInitSteering()

void SIInitSteering ( void )

◆ SIIsChanBusy()

BOOL SIIsChanBusy ( s32 chan)

◆ SIProbe()

u32 SIProbe ( s32 chan)

◆ SIReadSteering()

s32 SIReadSteering ( s32 chan,
SISteeringStatus * status )

◆ SIRefreshSamplingRate()

void SIRefreshSamplingRate ( void )

◆ SIRegisterPollingHandler()

BOOL SIRegisterPollingHandler ( __OSInterruptHandler handler)

◆ SIResetSteering()

s32 SIResetSteering ( s32 chan)

◆ SIResetSteeringAsync()

s32 SIResetSteeringAsync ( s32 chan,
SISteeringCallback callback )

◆ SISetCommand()

void SISetCommand ( s32 chan,
u32 command )

◆ SISetSamplingRate()

void SISetSamplingRate ( u32 msec)

◆ SISetXY()

u32 SISetXY ( u32 x,
u32 y )

◆ SISync()

u32 SISync ( void )

◆ SITransfer()

BOOL SITransfer ( s32 chan,
void * output,
u32 outputBytes,
void * input,
u32 inputBytes,
SICallback callback,
OSTime delay )

◆ SITransferCommands()

void SITransferCommands ( void )

◆ SIUnregisterPollingHandler()

BOOL SIUnregisterPollingHandler ( __OSInterruptHandler handler)

Variable Documentation

◆ __PADFixBits

u32 __PADFixBits
extern

◆ __SIResetSteering

BOOL __SIResetSteering
extern

◆ __SISteering

SISteeringControl __SISteering[4]
extern

◆ __SISteeringEnableBits

u32 __SISteeringEnableBits
extern

◆ SISetSteeringSamplingCallback

void(*)() SISetSteeringSamplingCallback(void(*callback)()) ( void(* callback )())