MemoryCard: Formatting

This commit is contained in:
Connor McLaughlin
2019-09-30 01:53:47 +10:00
parent f3663fa018
commit 623b9996c7
2 changed files with 77 additions and 2 deletions

View File

@ -22,6 +22,8 @@ public:
void ResetTransferState() override;
bool Transfer(const u8 data_in, u8* data_out) override;
void Format();
private:
union FLAG
{
@ -60,6 +62,10 @@ private:
WriteEnd,
};
static u8 ChecksumFrame(const u8* fptr);
u8* GetSectorPtr(u32 sector);
State m_state = State::Idle;
u16 m_address = 0;
u8 m_sector_offset = 0;