Fields
busylight_core.vendors.muteme.implementation.fields
¶
MuteMe bit field definitions.
This module defines BitField classes used to construct device commands. MuteMe devices use 1-bit fields that are converted to full 8-bit values for device communication.
Classes¶
busylight_core.vendors.muteme.implementation.fields.OneBitField
¶
Bases: BitField
Base class for 1-bit fields that expand to full 8-bit values.
MuteMe devices expect 0xFF for "on" state and 0x00 for "off" state, but internally we work with boolean-like values for simplicity.
Create a read-only bit field descriptor.
Defines a named field that maps to specific bit positions within a Word. The field will be accessible as a regular attribute on Word instances but will raise AttributeError on assignment attempts.
:param offset: Starting bit position within the word (0-based from LSB) :param width: Number of consecutive bits to include in the field
Source code in src/busylight_core/word.py
busylight_core.vendors.muteme.implementation.fields.RedBit
¶
Bases: OneBitField
1-bit red color field that expands to 0xFF when set.
Source code in src/busylight_core/vendors/muteme/implementation/fields.py
busylight_core.vendors.muteme.implementation.fields.GreenBit
¶
Bases: OneBitField
1-bit green color field that expands to 0xFF when set.
Source code in src/busylight_core/vendors/muteme/implementation/fields.py
busylight_core.vendors.muteme.implementation.fields.BlueBit
¶
Bases: OneBitField
1-bit blue color field that expands to 0xFF when set.
Source code in src/busylight_core/vendors/muteme/implementation/fields.py
busylight_core.vendors.muteme.implementation.fields.DimBit
¶
Bases: OneBitField
1-bit dim field for brightness control.
Source code in src/busylight_core/vendors/muteme/implementation/fields.py
busylight_core.vendors.muteme.implementation.fields.BlinkBit
¶
Bases: OneBitField
1-bit blink field for flashing control.
Source code in src/busylight_core/vendors/muteme/implementation/fields.py
busylight_core.vendors.muteme.implementation.fields.SleepBit
¶
Bases: OneBitField
1-bit sleep field for power management.