Skip to main content

Module trigger

Module trigger 

Source
Expand description

Momentary two-boolean virtual button and trigger pulses.

Many action and request properties on RØDECaster devices (such as mixLinkRequest, mixUnlinkRequest, padProgressRequestSignal, and sipSlotCallDisconnect) follow a momentary button-pulse pattern.

On the wire, these properties encode two serialized booleans:

  • Press (asserted): (true, true) -> [0x01, 0x01, 0x02, 0x01, 0x01, 0x02]
  • Release (idle): (false, false) -> [0x01, 0x01, 0x03, 0x01, 0x01, 0x03]

Physical interactions emit TriggerPhase::Press on touch-down and TriggerPhase::Release on touch-up. Commands assert Press, and the device resets the property with a Release acknowledgment.

Enums§

TriggerPhase
Phase of a momentary button press or trigger pulse.

Constants§

PRESS_BYTES
The 6-byte trigger payload when asserting a press: (true, true).
RELEASE_BYTES
The 6-byte trigger payload when releasing / idle: (false, false).

Functions§

bool_pair
Encode two booleans into the canonical 6-byte JUCE payload.
decode_bool_pair
Decode a 6-byte payload into its two boolean values.
decode_phase
Decode the trigger phase from a Value.
press_value
Build a Value::Binary containing the (true, true) press payload.
release_value
Build a Value::Binary containing the (false, false) release payload.

Type Aliases§

TriggerOrigin
Backward-compatible type alias for TriggerPhase.