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 211 of file fastspi_bitbang.h.

213 {
214#if 0
216#else
217 if(b & (1 << BIT)) {
221 } else {
222 // FL_NOP;
226 }
227#endif
228 }
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:257

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

+ Here is the call graph for this function: