libtinylor
Single-file header library for controlling Light-O-Rama hardware
Loading...
Searching...
No Matches
lor_channel_set Struct Reference

Represents a grouping of 16 channels, as a bit set, aligned to a 16-channel boundary (via a multiplier). More...

#include <tinylor.h>

Data Fields

unsigned char offset
 The offset of the first channel in the set.
 
unsigned short cbits
 The 16-bit bitset of channels to apply the effect to relative to the offset.
 

Detailed Description

Represents a grouping of 16 channels, as a bit set, aligned to a 16-channel boundary (via a multiplier).

Field Documentation

◆ cbits

unsigned short lor_channel_set::cbits

The 16-bit bitset of channels to apply the effect to relative to the offset.

Note
The bitset is a 16-bit unsigned integer, with each bit representing a channel in the set. The least significant bit represents the first channel in the set, and the most significant bit represents the 16th channel in the set.

◆ offset

unsigned char lor_channel_set::offset

The offset of the first channel in the set.

Note
The offset is a 6-bit unsigned integer, with a maximum value of 64.

The documentation for this struct was generated from the following file: