PSYQO SDK
psyqo::MemoryCard
Class
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Class
A low level driver for the PlayStation memory cards.
Basic usage
This generated sketch illustrates syntax for reaching the type; adapt it to the actual API contract. Open a member below for an operation-specific example.
C++ example
#include "psyqo/memory-card.hh"
psyqo::MemoryCard& value = /* obtain a valid instance from your game */;Nested types
ErrorThe error codes returned by every memory card operation.EnumPortThe memory card port to talk to.EnumReadSectorAwaiter--- Coroutine-friendly awaiters --------------------------------------StructWriteSectorAwaiterStruct declared by the memory-card module for asynchronous Memory Card access and files.StructFields and constants
Public methods
preparePrepares the SIO0 bus for memory card access.MethodprobeBlockingProbes the card for presence.MethodreadSectorReads sector as part of asynchronous Memory Card access and files.MethodreadSectorBlockingReads a single 128-byte sector synchronously.MethodscheduleReadSector--- TaskQueue schedulers ---------------------------------------------MethodscheduleWriteSectorPerforms `schedule write sector` as part of asynchronous Memory Card access and files.MethoduseAsyncRecoveryOptional for callback transfers: keep the recovery window deselected using a GPU timer instead of spinning on the main thread.MethodwriteSectorWrites sector as part of asynchronous Memory Card access and files.MethodwriteSectorBlockingWrites a single 128-byte sector synchronously.MethodStatic methods
blockCountPerforms `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.MethodsectorCountPerforms `sector count` as part of asynchronous Memory Card access and files.MethodsectorSizePerforms `sector size` as part of asynchronous Memory Card access and files.Method