SSBM Decomp
Loading...
Searching...
No Matches
OSSerial.c File Reference
#include <platform.h>
#include <placeholder.h>
#include <dolphin/os/OSInterrupt.h>
#include <dolphin/os/OSSerial.h>
#include <dolphin/os/OSTime.h>
#include <dolphin/sipriv.h>

Functions

UNK_T VIGetCurrentLine (UNK_PARAMS)
 
static bool SIGetResponseRaw (s32 chan)
 
static void GetTypeCallback (s32 chan, u32 error, OSContext *context)
 
static bool __SITransfer (void)
 
static bool SIEnablePollingInterrupt (bool enable)
 
bool SIBusy (void)
 
bool SIIsChanBusy (s32 status)
 
static void CompleteTransfer (void)
 
static void SIInterruptHandler (void)
 
bool SIRegisterPollingHandler (__OSInterruptHandler handler)
 
bool SIUnregisterPollingHandler (__OSInterruptHandler handler)
 
void SIInit (void)
 
u32 SIGetStatus (s32 chan)
 
struct { 
 
   u32   command 
 
   u32   x4 
 
   u32   x8 
 
AT_ADDRESS (0xCC006400) 
 
void SISetCommand (s32 index, u32 value)
 
void SITransferCommands (void)
 
u32 SISetXY (u32 x, u32 y)
 
u32 SIEnablePolling (u32 poll)
 
u32 SIDisablePolling (u32 poll)
 
bool SIGetResponse (s32 chan, void *data)
 
static void AlarmHandler (void)
 
bool SITransfer (s32 chan, void *output, u32 outputBytes, void *input, u32 inputBytes, SICallback callback, OSTime delay)
 
u32 SIGetType (s32 arg0)
 
u32 SIGetTypeAsync (s32 chan, SITypeAndStatusCallback callback)
 

Variables

UNK_T OSSerial_804D73C8
 
struct { 
 
   enum_t   status 
 
   u32   xy 
 
   s32   _ [0x20 - 0x8] 
 
Si 
 
struct { 
 
   s32   x0 
 
   u8   pad [32 - 4] 
 
Packet [] 
 

Function Documentation

◆ VIGetCurrentLine()

UNK_T VIGetCurrentLine ( UNK_PARAMS  )
extern

◆ SIGetResponseRaw()

bool SIGetResponseRaw ( s32  chan)
static

◆ GetTypeCallback()

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

◆ __SITransfer()

static bool __SITransfer ( void  )
static

◆ SIEnablePollingInterrupt()

static bool SIEnablePollingInterrupt ( bool  enable)
static

◆ SIBusy()

bool SIBusy ( void  )

◆ SIIsChanBusy()

bool SIIsChanBusy ( s32  status)

◆ CompleteTransfer()

static void CompleteTransfer ( void  )
static

◆ SIInterruptHandler()

static void SIInterruptHandler ( void  )
static

◆ SIRegisterPollingHandler()

bool SIRegisterPollingHandler ( __OSInterruptHandler  handler)

◆ SIUnregisterPollingHandler()

bool SIUnregisterPollingHandler ( __OSInterruptHandler  handler)

◆ SIInit()

void SIInit ( void  )

◆ SIGetStatus()

u32 SIGetStatus ( s32  chan)

◆ AT_ADDRESS()

volatile struct @12 AT_ADDRESS ( 0xCC006400  )
extern

◆ SISetCommand()

void SISetCommand ( s32  index,
u32  value 
)

◆ SITransferCommands()

void SITransferCommands ( void  )

◆ SISetXY()

u32 SISetXY ( u32  x,
u32  y 
)

◆ SIEnablePolling()

u32 SIEnablePolling ( u32  poll)

◆ SIDisablePolling()

u32 SIDisablePolling ( u32  poll)

◆ SIGetResponse()

bool SIGetResponse ( s32  chan,
void *  data 
)

◆ AlarmHandler()

static void AlarmHandler ( void  )
static

◆ SITransfer()

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

◆ SIGetType()

u32 SIGetType ( s32  arg0)

◆ SIGetTypeAsync()

u32 SIGetTypeAsync ( s32  chan,
SITypeAndStatusCallback  callback 
)

Variable Documentation

◆ OSSerial_804D73C8

UNK_T OSSerial_804D73C8
extern

◆ status

enum_t status

◆ xy

u32 xy

◆ _

s32 _[0x20 - 0x8]

◆ [struct]

struct { ... } Si

◆ x0

s32 x0

◆ pad

u8 pad[32 - 4]

◆ [struct]

struct { ... } Packet[]

◆ command

u32 command

◆ x4

UNK_T x4

◆ x8

u32 x8