FastLED 3.10.8
Loading...
Searching...
No Matches

◆ setExclusiveDriver() [2/2]

bool fl::ChannelManager::setExclusiveDriver ( Bus bus,
fl::u8 which = 0 )

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 272 of file manager.cpp.hpp.

272 {
273 return setExclusiveDriverByName(busDriverName(bus, which));
274}
bool setExclusiveDriverByName(const char *name) FL_NO_EXCEPT
Enable only one driver exclusively (disables all others) — by-name escape hatch.
const char * busDriverName(Bus b, fl::u8 which=0, bool spi=false) FL_NO_EXCEPT
Concrete ChannelManager driver name for a portable bus.
Definition bus.h:170

References fl::busDriverName(), fl::FL_NO_EXCEPT, and setExclusiveDriverByName().

+ Here is the call graph for this function: