FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setExclusiveDriver() [2/2]

bool fl::ChannelManager::setExclusiveDriver ( Bus bus)

Enable only one driver exclusively, by fl::Bus enum (runtime form).

Parameters
busBus enum identifying the driver to enable (typed, typo-safe)
Returns
true if driver was found and set as exclusive, false otherwise
Note
Typed overload — prefer this over the by-name variant for built-in drivers. Delegates to setExclusiveDriverByName(busName(bus)).
Does NOT ODR-use BusTraits<bus>::instancePtr() — for compile-time TU-linking, use the setExclusiveDriver<fl::Bus B>() template overload.

Definition at line 244 of file manager.cpp.hpp.

244 {
246}
bool setExclusiveDriverByName(const char *name) FL_NOEXCEPT
Enable only one driver exclusively (disables all others) — by-name escape hatch.
const char * busName(Bus b) FL_NOEXCEPT
Canonical driver-name string for a Bus value.
Definition bus.h:167

References fl::busName(), and setExclusiveDriverByName().

+ Here is the call graph for this function: