wifi: take this shit further. complete wifi init

This commit is contained in:
Arisotura
2019-08-04 02:16:16 +02:00
parent 0918da7b00
commit f7f4ff0519
9 changed files with 472 additions and 61 deletions

View File

@ -89,6 +89,15 @@ public:
return Entries[ReadPos];
}
T Peek(u32 offset)
{
u32 pos = ReadPos + offset;
if (pos >= NumEntries)
pos -= NumEntries;
return Entries[pos];
}
u32 Level() { return NumOccupied; }
bool IsEmpty() { return NumOccupied == 0; }
bool IsFull() { return NumOccupied >= NumEntries; }