FastLED 3.9.15
Loading...
Searching...
No Matches

◆ writeBit() [4/4]

template<uint8_t DATA_PIN, uint8_t CLOCK_PIN, uint32_t SPI_SPEED>
template<uint8_t BIT>
static FASTLED_FORCE_INLINE void AVRSoftwareSPIOutput< DATA_PIN, CLOCK_PIN, SPI_SPEED >::writeBit ( uint8_t b,
data_ptr_t clockdatapin,
data_t datahiclockhi,
data_t dataloclockhi,
data_t datahiclocklo,
data_t dataloclocklo )
inlinestaticprivate

The version of writeBit() to use when clock and data are on the same port with precomputed values for the various combinations.

Definition at line 213 of file fastspi_bitbang.h.

215 {
216#if 0
218#else
219 if(b & (1 << BIT)) {
223 } else {
224 // FL_NOP;
228 }
229#endif
230 }
static void writeBit(uint8_t b)
Write the BIT'th bit out via SPI, setting the data pin then strobing the clock.
Software SPI (aka bit-banging) support Includes aggressive optimizations for when the clock and data ...
static void fastset(FASTLED_REGISTER port_ptr_t port, FASTLED_REGISTER port_t val)
Set the state of a port.
Definition fastpin.h:259

References CLOCK_HI_DELAY, CLOCK_LO_DELAY, FASTLED_FORCE_INLINE, FastPin< PIN >::fastset(), and writeBit().

+ Here is the call graph for this function: