Epok Engine

EPOK RUNTIME

epok::pocket_detail::sio_exchange

Function · 1 overload

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.

Function

SIO0 transaction, polled like PsyQo's blocking memory card path.

Belongs to
epok::pocket_detail
Header
pocketstation.hpp
Overloads
1

Declaration

Declaration
inline uint16_t sio_exchange(unsigned port, const uint8_t* send, uint8_t* reply, uint16_t length, int16_t length_at, bool recovered = false)

SIO0 transaction, polled like PsyQo's blocking memory card path.

ParameterTypeMeaning
portunsigned intNot documented; consult the linked header.
sendconst uint8_t *Not documented; consult the linked header.
replyuint8_t *Not documented; consult the linked header.
lengthuint16_tNot documented; consult the linked header.
length_atint16_tNot documented; consult the linked header.
recoveredboolNot documented; consult the linked header.

Returns: uint16_t. Consult the linked header for its meaning.

Example sketch

C++ example
#include "pocketstation.hpp"

// Assume these named values have been initialized with valid data:
// unsigned int port
// const uint8_t * send
// uint8_t * reply
// uint16_t length
// int16_t length_at
// bool recovered

auto result = epok::pocket_detail::sio_exchange(port, send, reply, length, length_at, recovered);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/pocketstation.hpp:141

Related members