MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / AlarmHandler

Function AlarmHandler

src/dolphin/src/si/SIBios.c:542–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540}
541
542static void AlarmHandler(OSAlarm* alarm, OSContext* context)
543{
544#pragma unused(context)
545 s32 chan;
546 SIPacket* packet;
547
548 chan = alarm - Alarm;
549 packet = &Packet[chan];
550 if (packet->chan != -1)
551 {
552 if (__SITransfer(packet->chan, packet->output, packet->outputBytes, packet->input,
553 packet->inputBytes, packet->callback))
554 {
555 packet->chan = -1;
556 }
557 }
558}
559
560BOOL SITransfer(s32 chan, void* output, u32 outputBytes, void* input, u32 inputBytes,
561 SICallback callback, OSTime delay)

Callers

nothing calls this directly

Calls 1

__SITransferFunction · 0.85

Tested by

no test coverage detected