Fields
busylight_core.vendors.kuando.implementation.fields
¶
Kuando Busylight bit field definitions.
This module defines BitField classes used to construct device commands. Each field represents a specific portion of the 64-bit command structure that controls various aspects of the Kuando Busylight device behavior.
Classes¶
busylight_core.vendors.kuando.implementation.fields.OpCodeField
¶
Bases: BitField
4-bit opcode
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
busylight_core.vendors.kuando.implementation.fields.OperandField
¶
Bases: BitField
4-bit operand
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
busylight_core.vendors.kuando.implementation.fields.BodyField
¶
Bases: BitField
56-bit body
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
busylight_core.vendors.kuando.implementation.fields.RepeatField
¶
Bases: BitField
8-bit repeat
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
busylight_core.vendors.kuando.implementation.fields.ScaledColorField
¶
Bases: BitField
A scaled color field that converts between 0-255 RGB values and device scale.
The Kuando devices use a 0-100 internal scale for color values, but the public API uses standard 0-255 RGB values. This field handles the conversion automatically when getting and setting color values.
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
Attributes¶
busylight_core.vendors.kuando.implementation.fields.ScaledColorField.field
instance-attribute
¶
busylight_core.vendors.kuando.implementation.fields.ScaledColorField.offset
instance-attribute
¶
busylight_core.vendors.kuando.implementation.fields.ScaledColorField.width
instance-attribute
¶
busylight_core.vendors.kuando.implementation.fields.RedField
¶
Bases: ScaledColorField
8-bit red color component with automatic scaling.
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
busylight_core.vendors.kuando.implementation.fields.GreenField
¶
Bases: ScaledColorField
8-bit green color component with automatic scaling.
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
busylight_core.vendors.kuando.implementation.fields.BlueField
¶
Bases: ScaledColorField
8-bit blue color component with automatic scaling.
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
busylight_core.vendors.kuando.implementation.fields.DutyCycleOnField
¶
Bases: BitField
8-bit duty cycle on time for LED pulsing patterns.
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
Attributes¶
busylight_core.vendors.kuando.implementation.fields.DutyCycleOnField.field
instance-attribute
¶
busylight_core.vendors.kuando.implementation.fields.DutyCycleOnField.offset
instance-attribute
¶
busylight_core.vendors.kuando.implementation.fields.DutyCycleOnField.width
instance-attribute
¶
busylight_core.vendors.kuando.implementation.fields.DutyCycleOffField
¶
Bases: BitField
8-bit duty cycle off time for LED pulsing patterns.
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
Attributes¶
busylight_core.vendors.kuando.implementation.fields.DutyCycleOffField.field
instance-attribute
¶
busylight_core.vendors.kuando.implementation.fields.DutyCycleOffField.offset
instance-attribute
¶
busylight_core.vendors.kuando.implementation.fields.DutyCycleOffField.width
instance-attribute
¶
busylight_core.vendors.kuando.implementation.fields.UpdateBit
¶
Bases: BitField
1-bit update
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
busylight_core.vendors.kuando.implementation.fields.RingtoneField
¶
Bases: BitField
4-bit ringtone selection field.
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
busylight_core.vendors.kuando.implementation.fields.VolumeField
¶
Bases: BitField
3-bit volume control for ringtone playback.
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
busylight_core.vendors.kuando.implementation.fields.SensitivityField
¶
Bases: BitField
8-bit sensitivity
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
Attributes¶
busylight_core.vendors.kuando.implementation.fields.SensitivityField.field
instance-attribute
¶
busylight_core.vendors.kuando.implementation.fields.SensitivityField.offset
instance-attribute
¶
busylight_core.vendors.kuando.implementation.fields.SensitivityField.width
instance-attribute
¶
busylight_core.vendors.kuando.implementation.fields.TimeoutField
¶
Bases: BitField
8-bit timeout
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
busylight_core.vendors.kuando.implementation.fields.TriggerField
¶
Bases: BitField
8-bit trigger
Source code in src/busylight_core/vendors/kuando/implementation/fields.py
busylight_core.vendors.kuando.implementation.fields.ChecksumField
¶
Bases: BitField
16-bit checksum