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

Represents a set of unit IDs as a 256-bit bitset, used to address a request to an arbitrary subset of units in a single frame (see lor_set_units). Initialize with lor_unit_set_clear or by zero initialization before adding units. More...

#include <tinylor.h>

Data Fields

uint64_t bits [4]
 Membership bits. Unit ID u is a member when bit (u % 64) of bits[u / 64] is set.
 

Detailed Description

Represents a set of unit IDs as a 256-bit bitset, used to address a request to an arbitrary subset of units in a single frame (see lor_set_units). Initialize with lor_unit_set_clear or by zero initialization before adding units.

Note
Only unit IDs in [1, 0xF0] are valid on the wire. Unit ID 0 is the frame delimiter and must never be added; membership is not validated.

Field Documentation

◆ bits

uint64_t lor_unit_set::bits[4]

Membership bits. Unit ID u is a member when bit (u % 64) of bits[u / 64] is set.


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