MCPcopy Create free account
hub / github.com/FastLED/FastLED / getPin

Method getPin

src/fl/channels/data.cpp.hpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27int ChannelData::getPin() const FL_NOEXCEPT {
28 if (const ClocklessChipset* cs = mChipset.ptr<ClocklessChipset>()) {
29 return cs->pin;
30 }
31 if (const SpiChipsetConfig* spi = mChipset.ptr<SpiChipsetConfig>()) {
32 return spi->dataPin;
33 }
34 return -1;
35}
36
37const ChipsetTimingConfig& ChannelData::getTiming() const FL_NOEXCEPT {
38 if (const ClocklessChipset* cs = mChipset.ptr<ClocklessChipset>()) {

Callers 8

FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
testRxChannelSanityFunction · 0.45
captureFunction · 0.45

Calls

no outgoing calls

Tested by 2

testRxChannelSanityFunction · 0.36
captureFunction · 0.36