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§
- Trigger
Phase - 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::Binarycontaining the(true, true)press payload. - release_
value - Build a
Value::Binarycontaining the(false, false)release payload.
Type Aliases§
- Trigger
Origin - Backward-compatible type alias for
TriggerPhase.