SSBM Decomp
Loading...
Searching...
No Matches
OSSerial.h File Reference
#include <dolphin/hw_regs.h>

Go to the source code of this file.

Data Structures

struct  SIControl
struct  SIPacket

Macros

#define CHAN_NONE   -1
#define SI_MAX_CHAN   4
#define SI_COMCSR_IDX   13
#define SI_STATUS_IDX   14
#define SI_COMCSR_TCINT_MASK   (1 << 31)
#define SI_COMCSR_TCINTMSK_MASK   (1 << 30)
#define SI_COMCSR_COMERR_MASK   (1 << 29)
#define SI_COMCSR_RDSTINT_MASK   (1 << 28)
#define SI_COMCSR_RDSTINTMSK_MASK   (1 << 27)
#define SI_COMCSR_OUTLNGTH_MASK
#define SI_COMCSR_INLNGTH_MASK
#define SI_COMCSR_CHANNEL_MASK   (1 << 2) | (1 << 1)
#define SI_COMCSR_TSTART_MASK   (1 << 0)

Typedefs

typedef void(* SITypeAndStatusCallback) (long chan, unsigned long type)

Functions

int SIBusy ()
BOOL SIIsChanBusy (int chan)
BOOL SIRegisterPollingHandler (__OSInterruptHandler)
BOOL SIUnregisterPollingHandler (__OSInterruptHandler)
void SIInit ()
unsigned long SISync ()
unsigned long SIGetStatus (int)
void SISetCommand (long chan, unsigned long command)
unsigned long SIGetCommand (long chan)
void SITransferCommands ()
unsigned long SISetXY (unsigned long x, unsigned long y)
unsigned long SIEnablePolling (unsigned long poll)
unsigned long SIDisablePolling (unsigned long poll)
int SIGetResponse (long chan, void *data)
int SITransfer (long chan, void *output, unsigned long outputBytes, void *input, unsigned long inputBytes, void(*callback)(long, unsigned long, struct OSContext *), OSTime delay)
unsigned long SIGetType (long chan)
unsigned long SIGetTypeAsync (long chan, SITypeAndStatusCallback callback)

Macro Definition Documentation

◆ CHAN_NONE

#define CHAN_NONE   -1

◆ SI_MAX_CHAN

#define SI_MAX_CHAN   4

◆ SI_COMCSR_IDX

#define SI_COMCSR_IDX   13

◆ SI_STATUS_IDX

#define SI_STATUS_IDX   14

◆ SI_COMCSR_TCINT_MASK

#define SI_COMCSR_TCINT_MASK   (1 << 31)

◆ SI_COMCSR_TCINTMSK_MASK

#define SI_COMCSR_TCINTMSK_MASK   (1 << 30)

◆ SI_COMCSR_COMERR_MASK

#define SI_COMCSR_COMERR_MASK   (1 << 29)

◆ SI_COMCSR_RDSTINT_MASK

#define SI_COMCSR_RDSTINT_MASK   (1 << 28)

◆ SI_COMCSR_RDSTINTMSK_MASK

#define SI_COMCSR_RDSTINTMSK_MASK   (1 << 27)

◆ SI_COMCSR_OUTLNGTH_MASK

#define SI_COMCSR_OUTLNGTH_MASK
Value:
(1 << 22) | (1 << 21) | (1 << 20) | (1 << 19) | (1 << 18) | (1 << 17) | \
(1 << 16)

◆ SI_COMCSR_INLNGTH_MASK

#define SI_COMCSR_INLNGTH_MASK
Value:
(1 << 14) | (1 << 13) | (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | \
(1 << 8)

◆ SI_COMCSR_CHANNEL_MASK

#define SI_COMCSR_CHANNEL_MASK   (1 << 2) | (1 << 1)

◆ SI_COMCSR_TSTART_MASK

#define SI_COMCSR_TSTART_MASK   (1 << 0)

Typedef Documentation

◆ SITypeAndStatusCallback

typedef void(* SITypeAndStatusCallback) (long chan, unsigned long type)

Function Documentation

◆ SIBusy()

int SIBusy ( )

◆ SIIsChanBusy()

BOOL SIIsChanBusy ( int chan)

◆ SIRegisterPollingHandler()

BOOL SIRegisterPollingHandler ( __OSInterruptHandler )

◆ SIUnregisterPollingHandler()

BOOL SIUnregisterPollingHandler ( __OSInterruptHandler )

◆ SIInit()

void SIInit ( )

◆ SISync()

unsigned long SISync ( )

◆ SIGetStatus()

unsigned long SIGetStatus ( int )

◆ SISetCommand()

void SISetCommand ( long chan,
unsigned long command )

◆ SIGetCommand()

unsigned long SIGetCommand ( long chan)

◆ SITransferCommands()

void SITransferCommands ( )

◆ SISetXY()

unsigned long SISetXY ( unsigned long x,
unsigned long y )

◆ SIEnablePolling()

unsigned long SIEnablePolling ( unsigned long poll)

◆ SIDisablePolling()

unsigned long SIDisablePolling ( unsigned long poll)

◆ SIGetResponse()

int SIGetResponse ( long chan,
void * data )

◆ SITransfer()

int SITransfer ( long chan,
void * output,
unsigned long outputBytes,
void * input,
unsigned long inputBytes,
void(* callback )(long, unsigned long, struct OSContext *),
OSTime delay )

◆ SIGetType()

unsigned long SIGetType ( long chan)

◆ SIGetTypeAsync()

unsigned long SIGetTypeAsync ( long chan,
SITypeAndStatusCallback callback )