FastLED 3.10.9
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 279 of file manager.cpp.hpp.

279 {
280 return setExclusiveDriverByName(busDriverName(bus, which));
281}
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:186

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

+ Here is the call graph for this function: