FastLED 3.10.6
Loading...
Searching...
No Matches
fl::PinSet Struct Reference

Detailed Description

Definition at line 121 of file capabilities.h.

#include <capabilities.h>

+ Collaboration diagram for fl::PinSet:

Public Member Functions

constexpr PinSet () FL_NO_EXCEPT
 
constexpr PinSet (PinSetKind k) FL_NO_EXCEPT
 
constexpr PinSet (PinSetKind k, const PinBitset &b) FL_NO_EXCEPT
 
bool accepts (fl::i16 pin) const FL_NO_EXCEPT
 True iff this set accepts the given single pin.
 
bool acceptsAll (const PinBitset &request) const FL_NO_EXCEPT
 True iff every set bit in request is also accepted here.
 

Static Public Member Functions

template<fl::size N>
static PinSet allowlist (const fl::i16(&arr)[N]) FL_NO_EXCEPT
 Factory: allowlist of pins, constructed from a static array.
 
static constexpr PinSet anyOutput () FL_NO_EXCEPT
 Factory: any GPIO output pin in [0, kPinSetCapacity).
 
static PinSet fixed (fl::i16 pin) FL_NO_EXCEPT
 Factory: allowlist with a single pin (the "fixed pin" idiom).
 
static constexpr PinSet none () FL_NO_EXCEPT
 Factory: slot is not applicable.
 

Public Attributes

PinSetKind kind
 
PinBitset pins
 only meaningful when kind == Allowlist
 

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