|
FastLED 3.9.15
|
| bool fl::ChannelManager::setExclusiveDriverByName | ( | const char * | name | ) |
Enable only one driver exclusively (disables all others) — by-name escape hatch.
| name | Driver name to enable exclusively (case-sensitive, e.g., "MOCK_SPI") |
Test / mock helper: works with drivers that have ALREADY been registered via addDriver() (typically ChannelEngineMock instances under unit tests), or for drivers whose names are NOT in the fl::Bus enum (custom third-party drivers, RPC-resolved names). Does NOT link or register new drivers.
For built-in drivers, prefer either:
setExclusiveDriver(fl::Bus) (typed runtime form), orsetExclusiveDriver<fl::Bus B>() (compile-time form that links the driver TU via ODR-use). Definition at line 248 of file manager.cpp.hpp.
References FL_ERROR, mDrivers, and mExclusiveDriver.
Referenced by autoResearchSetExclusiveDriverByName(), and setExclusiveDriver().
Here is the caller graph for this function: