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

Function CompleteTransfer

src/dolphin/src/exi/EXIBios.c:92–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92inline void CompleteTransfer(s32 chan)
93{
94 EXIControl* exi = &Ecb[chan];
95 u8* buf;
96 u32 data;
97 int i;
98 int len;
99
100 if (exi->state & STATE_BUSY)
101 {
102 if ((exi->state & STATE_IMM) && (len = exi->immLen))
103 {
104 buf = exi->immBuf;
105 data = REG(chan, 4);
106 for (i = 0; i < len; i++)
107 {
108 *buf++ = (u8)((data >> ((3 - i) * 8)) & 0xff);
109 }
110 }
111 exi->state &= ~STATE_BUSY;
112 }
113}
114
115BOOL EXIImm(s32 chan, void* buf, s32 len, u32 type, EXICallback callback)
116{

Callers 2

EXISyncFunction · 0.70
TCIntrruptHandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected