EPOK RUNTIME
epok::PocketStationService
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
Class declared by the pocketstation module for the pocketstation module.
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 "pocketstation.hpp"
epok::PocketStationService& value = /* obtain a valid instance from your game */;Fields and constants
Public methods
callCalls link function `function` of the running program.MethodconnectedPerforms `connected` as part of the pocketstation module.MethodfindFinds a file by name; `*block` receives its first block.MethodinstallCopies an embedded program to the card (replacing an older copy) and returns its first block.Methodinstall_and_launchInstalls (if needed) and starts an embedded program.MethodlaunchStarts the program whose first block is `block` (0 = start-up screen).MethodprobeTrue when a PocketStation (not a plain memory card) is in the slot.Methodread_directoryReads the 16 directory frames (block 0) in one batch.Methodread_memoryKernel memory access (RAM, I/O, flash), up to 128 bytes.Methodread_sectorReads sector as part of the pocketstation module.MethodreceivePocket Lua link: the message published with `link.send(n)`; size 0 when none.MethodsendPocket Lua link: a message for `link.received()` / `link.byte(i)`.Methodset_ledThe red LED (through the PocketStation's I/O port).Methodset_timeSets the clock (year 1900-2099).Methodset_valuePocket Lua link: sets value `index` (1-16), read with `link.value(index)`.MethodstatusPerforms `status` as part of the pocketstation module.MethodtransferRuns memory card transactions on `port` (0 = first slot).MethodvaluesPocket Lua link: the 16 values set with `link.set_value(i, v)`.Methodwrite_memoryWrites memory as part of the pocketstation module.Methodwrite_sectorWrites sector as part of the pocketstation module.Method