ppsspp/Core/HW/MemoryStick.h

30 lines
682 B
C
Raw Normal View History

#pragma once
2014-03-15 18:32:57 +00:00
#include "Common/CommonTypes.h"
class PointerWrap;
2012-11-06 14:45:13 +00:00
// mscmhc0 states
enum MemStickState {
PSP_MEMORYSTICK_STATE_DRIVER_READY = 1,
PSP_MEMORYSTICK_STATE_DRIVER_BUSY = 2,
2012-11-06 14:45:13 +00:00
PSP_MEMORYSTICK_STATE_DEVICE_INSERTED = 4,
PSP_MEMORYSTICK_STATE_DEVICE_REMOVED = 8,
2012-11-06 14:45:13 +00:00
};
// memstick FAT states.
enum MemStickFatState {
PSP_FAT_MEMORYSTICK_STATE_UNASSIGNED = 0,
PSP_FAT_MEMORYSTICK_STATE_ASSIGNED = 1,
2012-11-06 14:45:13 +00:00
};
void MemoryStick_Init();
void MemoryStick_DoState(PointerWrap &p);
2012-11-06 14:45:13 +00:00
MemStickState MemoryStick_State();
MemStickFatState MemoryStick_FatState();
2012-11-09 09:01:54 +00:00
void MemoryStick_SetFatState(MemStickFatState state);
2012-11-06 14:45:13 +00:00
u64 MemoryStick_SectorSize();
u64 MemoryStick_FreeSpace();