FastLED  3.1
DATA_NOP Class Reference

Some of the SPI controllers will need to perform a transform on each byte before doing anyting with it. More...

#include <fastspi_types.h>

Static Public Member Functions

static __attribute__ ((always_inline)) inline uint8_t adjust(register uint8_t data)
 
static __attribute__ ((always_inline)) inline uint8_t adjust(register uint8_t data
 
static __attribute__ ((always_inline)) inline void postBlock(int)
 

Public Attributes

static register uint8_t scale { return scale8(data, scale)
 

Detailed Description

Some of the SPI controllers will need to perform a transform on each byte before doing anyting with it.

Creating a class of this form and passing it in as a template parameter to writeBytes/writeBytes3 below will ensure that the body of this method will get called on every byte worked on. Recommendation, make the adjust method aggressively inlined.

TODO: Convinience macro for building these

Definition at line 20 of file fastspi_types.h.


The documentation for this class was generated from the following file: