Skip to main content

Module control

Module control 

Source
Expand description

Interface Control Plane (ICP) — fixed-size PortalControlCommand envelopes.

Structs§

ControlCommandRing
Fixed-capacity SPSC ring of packed control commands.
PortalControlCommand
Packed ICP command (8 bytes).

Constants§

CONTROL_RING_CAP
ICP_MAGIC_BIT
MENU_ACTION_HOME
MENU_ACTION_SONIFY_TOGGLE
OP_BUTTON_ACTION
OP_COLLAPSE_Q
OP_MENU_ACTION
OP_NAVIGATE_INDEX
OP_SET_CAMERA_DELTA
OP_SET_STANDPOINT_SCALAR
OP_SONIC_TOKEN_FORWARD
OP_SWIPE_GESTURE
OP_TILT_FRAME
STANDPOINT_SCALAR_EPISTEMIC_Q
STANDPOINT_SCALAR_T_SLICE
STANDPOINT_SCALAR_T_WINDOW

Functions§

control_pending
Pending command count on the global ring (relaxed read).
control_ring
Process-global control ring instance (static, lock-free SPSC).
pop_control_command
Pops the oldest command from the global ring, or None.
push_control_command
Pushes cmd onto the global ring; false when full.
push_control_raw
Pushes an already-packed raw word onto the global ring.