NetworkReceiveEffect
Source:
NetworkReceiveEffect.h
NetworkReceiveEffect¶
src/light/effects/NetworkReceiveEffect.h:41Inherits:
EffectBase
Effect that paints the layer from received Art-Net/E1.31/DDP pixels.
Public Attributes¶
uint16_t universeStart = 0
uint16_t channelsPerUniverse = <>(MAX_CHANNELS_PER_UNIVERSE)
Public Methods¶
virtual inline constchar * tags() const override
: Curated emoji tags for the module picker's chip filter — extras beyond the role chip (which the UI derives from role() on its own).
virtual inline void defineControls() override
: defineControls MUST be idempotent and pure: only controls_.clear() + controls_.addX().
virtual inline void release() override
virtual inline void prepare() override
: Pure build (see MoonModule::prepare): open + bind the three receive sockets (each bind independent so one taken port can't stop the others) and size the staging buffer to the layer (one byte per channel byte, zeroed so a fresh grid starts dark).
virtual inline void tick() override
inline void applyDmx(uint16_t universe, constuint8_t * data, uint16_t len)
inline void applyBytes(size_t offset, constuint8_t * data, uint16_t len)
inline constuint8_t * stagingData() const
inline size_t stagingBytes() const