|
FastLED 3.9.15
|
|
inline |
Canonical driver-name string for a Bus value.
Each Bus::X corresponds to exactly one concrete IChannelDriver. That driver's getName() returns a stable string that ChannelManager uses as the lookup key (findDriverByName / getDriverByName). Channels read ChannelOptions::mBus (#2459) and the dispatch layer derives the lookup string via busName(mBus) — typo-prone string literals never appear at the call site.
Returns "AUTO" for Bus::AUTO — diagnostic/log paths get a stable human-readable label. mBus == Bus::AUTO means "no Bus pin; let the
manager pick by priority", so this name never reaches the manager's lookup.
Spelling is normalized to match the C++ enumerator name exactly (including underscores in FLEX_IO, OBJECT_FLED, BIT_BANG). Driver getName() implementations return the same string, so callers never need a reverse mapping or special-case handling.
Lifetime. Every returned pointer is to a string literal, so it has static storage duration — safe to feed to fl::string::from_literal().
Definition at line 167 of file bus.h.
References AUTO, BIT_BANG, FL_NOEXCEPT, FLEX_IO, I2S, I2S_SPI, LCD_CLOCKLESS, LCD_RGB, LCD_SPI, LPUART, OBJECT_FLED, PARLIO, RMT, SPI, STUB, and UART.
Referenced by fl::Channel::resolveDynamicDriver(), and fl::ChannelManager::setExclusiveDriver().
Here is the caller graph for this function: