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

Function StaInput

src/dolphin/src/eth/eth.c:226–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226static u8 StaInput(void) {
227 unsigned char bit;
228
229 writecmd(0x0060, 0x0C);
230 bit = readcmd(0x0060);
231 bit &= 1;
232 writecmd(0x0060, 0x04);
233 writecmd(0x0060, 0x04);
234 return bit;
235}
236
237static u16 PhyRead(unsigned int regNo) {
238 int i;

Callers 1

PhyReadFunction · 0.85

Calls 2

writecmdFunction · 0.85
readcmdFunction · 0.85

Tested by

no test coverage detected