Liking cljdoc? Tell your friends :D

clj-artnet.impl.protocol.dmx-helpers

DMX logic helpers: sync, failsafe, merge (Art-Net 4).

DMX logic helpers: sync, failsafe, merge (Art-Net 4).
raw docstring

apply-node-merge-modesclj

(apply-node-merge-modes state)

Syncs merge modes from node config.

Syncs merge modes from node config.
sourceraw docstring

apply-runtime-configclj

(apply-runtime-config state updates)

Applies :sync and :failsafe updates.

Applies :sync and :failsafe updates.
sourceraw docstring

artsync-timeout-nsclj

source

build-failsafe-dataclj

(build-failsafe-data mode last-output scene-entry)

Builds failsafe data. Returns {:data :length} or nil.

Builds failsafe data. Returns {:data :length} or nil.
sourceraw docstring

check-port-failsafeclj

(check-port-failsafe state timestamp port-address port-entry)

Checks port failsafe condition. Returns failsafe info or nil.

Checks port failsafe condition. Returns failsafe info or nil.
sourceraw docstring

clear-failsafe-portclj

(clear-failsafe-port state port-address)

Clears failsafe state for port.

Clears failsafe state for port.
sourceraw docstring

clear-sync-bufferclj

(clear-sync-buffer state)

Clears sync buffer and waiting state.

Clears sync buffer and waiting state.
sourceraw docstring

default-failsafe-configclj

source

default-refresh-rate-hzclj

source

ensure-merge-stateclj

(ensure-merge-state merge)

Ensures merge state structure.

Ensures merge state structure.
sourceraw docstring

failsafe-globally-enabled?clj

(failsafe-globally-enabled? state)

Returns true if failsafe is enabled and supported.

Returns true if failsafe is enabled and supported.
sourceraw docstring

failsafe-min-tick-interval-nsclj

source

failsafe-modeclj

(failsafe-mode state)

Returns failsafe mode: :hold, :zero, :full, or :scene.

Returns failsafe mode: :hold, :zero, :full, or :scene.
sourceraw docstring

failsafe-supported?clj

(failsafe-supported? state)

Returns true if node supports failsafe.

Returns true if node supports failsafe.
sourceraw docstring

get-failsafe-configclj

(get-failsafe-config state)

Returns failsafe config from state.

Returns failsafe config from state.
sourceraw docstring

good-output-ltp-bitclj

source

good-output-merge-bitclj

source

good-output-sacn-bitclj

source

initial-stateclj

(initial-state {:keys [sync-config failsafe-config]
                :or {sync-config (normalize-sync-config nil)
                     failsafe-config (normalize-failsafe-config nil)}})

Returns default DMX state shard.

Returns default DMX state shard.
sourceraw docstring

keepalive-default-interval-nsclj

source

keepalive-max-interval-nsclj

source

keepalive-min-interval-nsclj

source

keepalive-packetsclj

(keepalive-packets stale-ports)

Builds ArtDmx packets for stale ports.

Builds ArtDmx packets for stale ports.
sourceraw docstring

merge-source-timeout-nsclj

source

nanos-per-secondclj

source

node-merge-modesclj

(node-merge-modes node)

Extracts merge modes from node's good-output-a. Returns sequence of [port-index mode].

Extracts merge modes from node's good-output-a.
Returns sequence of [port-index mode].
sourceraw docstring

normalize-failsafe-configclj

(normalize-failsafe-config failsafe)

Normalizes failsafe config.

Normalizes failsafe config.
sourceraw docstring

normalize-sync-configclj

(normalize-sync-config sync)

Normalizes sync config.

Normalizes sync config.
sourceraw docstring

ports-needing-keepaliveclj

(ports-needing-keepalive state now interval-ns)

Returns list of ports idle longer than interval-ns.

Returns list of ports idle longer than interval-ns.
sourceraw docstring

record-failsafe-sceneclj

(record-failsafe-scene state timestamp)

Records current output as failsafe scene.

Records current output as failsafe scene.
sourceraw docstring

run-failsafeclj

(run-failsafe state timestamp)

Checks all ports for failsafe. Returns {:state :effects}.

Checks all ports for failsafe. Returns {:state :effects}.
sourceraw docstring

snapshotclj

(snapshot state)

Returns DMX telemetry snapshot.

Returns DMX telemetry snapshot.
sourceraw docstring

update-failsafe-configclj

(update-failsafe-config state config)

Updates failsafe config.

Updates failsafe config.
sourceraw docstring

update-sync-configclj

(update-sync-config state config)

Updates sync config and clears buffer if ArtSync disabled.

Updates sync config and clears buffer if ArtSync disabled.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close