PSYQO SDK
Memory Card
memory-card.hh · asynchronous Memory Card access and files
Module
asynchronous Memory Card access and files.
Include this module
C++ include
#include "psyqo/memory-card.hh"Types
ErrorThe error codes returned by every memory card operation.EnumMemoryCardA low level driver for the PlayStation memory cards.ClassPortThe memory card port to talk to.EnumReadSectorAwaiter--- Coroutine-friendly awaiters --------------------------------------StructWriteSectorAwaiterStruct declared by the memory-card module for asynchronous Memory Card access and files.StructFunctions and methods
await_readyPerforms `await ready` as part of asynchronous Memory Card access and files.Methodawait_readyPerforms `await ready` as part of asynchronous Memory Card access and files.Methodawait_resumePerforms `await resume` as part of asynchronous Memory Card access and files.Methodawait_resumePerforms `await resume` as part of asynchronous Memory Card access and files.Methodawait_suspendPerforms `await suspend` as part of asynchronous Memory Card access and files.Function templateawait_suspendPerforms `await suspend` as part of asynchronous Memory Card access and files.Function templateblockCountPerforms `block count` as part of asynchronous Memory Card access and files.MethodblockSizePerforms `block size` as part of asynchronous Memory Card access and files.MethoderrorMessageReturns a human readable string for an error code.MethodpreparePrepares the SIO0 bus for memory card access.MethodprobeBlockingProbes the card for presence.MethodreadSectorReads sector as part of asynchronous Memory Card access and files.MethodReadSectorAwaiterConstructs `psyqo::MemoryCard::ReadSectorAwaiter` for asynchronous Memory Card access and files.constructorreadSectorBlockingReads a single 128-byte sector synchronously.MethodscheduleReadSector--- TaskQueue schedulers ---------------------------------------------MethodscheduleWriteSectorPerforms `schedule write sector` as part of asynchronous Memory Card access and files.MethodsectorCountPerforms `sector count` as part of asynchronous Memory Card access and files.MethodsectorSizePerforms `sector size` as part of asynchronous Memory Card access and files.MethodwriteSectorWrites sector as part of asynchronous Memory Card access and files.MethodWriteSectorAwaiterConstructs `psyqo::MemoryCard::WriteSectorAwaiter` for asynchronous Memory Card access and files.constructorwriteSectorBlockingWrites a single 128-byte sector synchronously.MethodFields, variables and values
BadChecksumA frame checksum did not match.Enum valueBadDataThe payload header / structure is corrupt.Enum valueBadPortThe port argument is invalid.Enum valueBadSectorThe card reported a bad / out of range sector.Enum valuec_blockCountblocks per cardVariablec_blockSizebytes per blockVariablec_sectorCountsectors per cardVariablec_sectorSizebytes per sector / frameVariablec_sectorsPerBlocksectors per blockVariableDirectoryFullNo free directory entry for a new file.Enum valueFileExistsA file with that name already exists.Enum valueFileNotFoundThe requested file does not exist.Enum valueFileTooLargeThe payload would not fit in 15 blocks.Enum valueNameTooLongThe filename exceeds 20 characters.Enum valueNoCardNo card present / no acknowledge on the bus.Enum valueNotFormattedCard is present but is not a valid Sony card.Enum valueOKNo error.Enum valueOutOfSpaceNot enough free blocks for a file.Enum valuePort0Named value `Port0` in `psyqo::MemoryCard::Port`.Enum valuePort1Named value `Port1` in `psyqo::MemoryCard::Port`.Enum valueProtocolErrorUnexpected response byte from the card.Enum valueSerializeOverflowThe serialized payload exceeded the buffer.Enum valueTimeoutThe card stopped acknowledging mid-transfer.Enum valueUnconnectedThe port could not be selected.Enum value