Get the pin number for this channel (data pin)
- Returns
- Pin number
Definition at line 188 of file channel.cpp.hpp.
188 {
189 if (
const ClocklessChipset* cs =
mChipset.ptr<ClocklessChipset>()) {
190 return cs->pin;
191 }
192 if (
const SpiChipsetConfig* spi =
mChipset.ptr<SpiChipsetConfig>()) {
193 return spi->dataPin;
194 }
195 return -1;
196}
References mChipset.