aboutsummaryrefslogtreecommitdiff
path: root/src/Wifi.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wifi.h')
-rw-r--r--src/Wifi.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/Wifi.h b/src/Wifi.h
index 5553a6f..2e0465a 100644
--- a/src/Wifi.h
+++ b/src/Wifi.h
@@ -52,11 +52,12 @@ public:
W_RXCnt = 0x030,
W_WEPCnt = 0x032,
+ W_TRXPower = 0x034,
W_PowerUS = 0x036,
W_PowerTX = 0x038,
W_PowerState = 0x03C,
W_PowerForce = 0x040,
- W_PowerUnk = 0x48,
+ W_PowerDownCtrl = 0x48,
W_Random = 0x044,
@@ -206,6 +207,10 @@ private:
u8 RFVersion;
u32 RFRegs[0x40];
+ u32 RFChannelIndex[2];
+ u32 RFChannelData[14][2];
+ int CurChannel;
+
struct TXSlot
{
bool Valid;
@@ -240,7 +245,6 @@ private:
bool LANInited;
int USUntilPowerOn;
- bool ForcePowerOn;
// MULTIPLAYER SYNC APPARATUS
bool IsMP;
@@ -253,13 +257,15 @@ private:
void ScheduleTimer(bool first);
void UpdatePowerOn();
+ void CheckIRQ(u16 oldflags);
void SetIRQ(u32 irq);
void SetIRQ13();
void SetIRQ14(int source);
void SetIRQ15();
void SetStatus(u32 status);
- void PowerDown();
+
+ void UpdatePowerStatus(int power);
int PreambleLen(int rate) const;
u32 NumClients(u16 bitmask) const;
@@ -284,6 +290,8 @@ private:
void MSTimer();
+ void ChangeChannel();
+
void RFTransfer_Type2();
void RFTransfer_Type3();
};