Task that reads the type, the free space, and the format of a card.
More...
#include <mcgetinfotask.h>
|
| void | OnStart () override |
| | Issue the command.
|
| void | OnPoll () override |
| | Advance the memory card command in flight.
|
| virtual void | OnStop () |
| | Abandon the work.
|
|
| enum | Status {
kStatusOk = 0
, kStatusNoCard = 1
, kStatusFull = 2
, kStatusUnformatted = 3
,
kStatusChangedCard = 4
, kStatusExists = 5
, kStatusLimit = 6
, kStatusFormatted = 7
,
kStatusNotFound = 8
, kStatusConfigsBad = 9
, kStatusConfigsError = 10
} |
| | Values of sStatus, the outcome every memory card task and user reports. More...
|
| enum | State { kStateIdle = 0
, kStateRunning = 1
, kStateDone = 2
, kStateFailed = 3
} |
| | Values of mState. More...
|
| static void | SetStatus (int nResult) |
| | Record a library result in sResult, and translate the result into sStatus.
|
| static int | sFd |
| | The file descriptor the last open reported.
|
| static int | sResult |
| | The library result SetStatus() last translated.
|
| static int | sStatus |
| | The outcome of the last command, one of Status.
|
| static MemcardDirEntry * | sDirEntries |
| | The entries the last directory listing reported.
|
| static int | sDirCount |
| | The number of entries the last directory listing reported.
|
| int | mPort |
Task that reads the type, the free space, and the format of a card.
The RTTI records the class as deriving from MemcardTask. The object is 0x24 bytes.
◆ ~MCGetInfoTask()
| MCGetInfoTask::~MCGetInfoTask |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x00351b98
- Ghidra address:
- PAL: 0x003bee18
◆ Set()
| void MCGetInfoTask::Set |
( |
MemcardSerialTask * | pOwner, |
|
|
int | nPort, |
|
|
int | nAcceptNewCard ) |
Prepare the task.
- Parameters
-
| pOwner | The task that learns when this one ends through OnCardInfo(), or null. |
| nPort | The memory card slot. |
| nAcceptNewCard | Non-zero to count another card than before as success. |
- Ghidra address:
- NTSC-U/C: 0x0015d8a0
- Ghidra address:
- PAL: 0x0015f0b8
◆ OnGetInfo()
| void MCGetInfoTask::OnGetInfo |
( |
int | nResult | ) |
|
|
overridevirtual |
Record the outcome, finish, and tell mOwner.
An unformatted card counts as another card than before.
- Parameters
-
| nResult | The library's result. |
- Ghidra address:
- NTSC-U/C: 0x0015d8e8
- Ghidra address:
- PAL: 0x0015f100
Reimplemented from MemcardCBHandler.
◆ GetFree()
| int MCGetInfoTask::GetFree |
( |
| ) |
const |
|
inline |
- Returns
- The free space in kilobytes.
◆ GetType()
| int MCGetInfoTask::GetType |
( |
| ) |
const |
|
inline |
◆ GetFormat()
| int MCGetInfoTask::GetFormat |
( |
| ) |
const |
|
inline |
- Returns
- Non-zero for a formatted card.
◆ OnStart()
| void MCGetInfoTask::OnStart |
( |
| ) |
|
|
overrideprotectedvirtual |
Issue the command.
- Ghidra address:
- NTSC-U/C: 0x0015d988
- Ghidra address:
- PAL: 0x0015f1a0
Reimplemented from Task.
The documentation for this class was generated from the following file: