1 #ifndef __INC_FASTSPI_TYPES_H
2 #define __INC_FASTSPI_TYPES_H
6 FASTLED_NAMESPACE_BEGIN
9 #define SPI_B0 (RGB_BYTE0(RGB_ORDER) + (MASK_SKIP_BITS & SKIP))
10 #define SPI_B1 (RGB_BYTE1(RGB_ORDER) + (MASK_SKIP_BITS & SKIP))
11 #define SPI_B2 (RGB_BYTE2(RGB_ORDER) + (MASK_SKIP_BITS & SKIP))
12 #define SPI_ADVANCE (3 + (MASK_SKIP_BITS & SKIP))
22 static __attribute__((always_inline))
inline uint8_t adjust(
register uint8_t data) {
return data; }
23 static __attribute__((always_inline))
inline uint8_t adjust(
register uint8_t data,
register uint8_t scale) {
return scale8(data, scale); }
24 static __attribute__((always_inline))
inline void postBlock(
int ) { }
27 #define FLAG_START_BIT 0x80
28 #define MASK_SKIP_BITS 0x3F
34 #define SPEED_DIV_16 16
35 #define SPEED_DIV_32 32
36 #define SPEED_DIV_64 64
37 #define SPEED_DIV_128 128
39 #define MAX_DATA_RATE 0
Some of the SPI controllers will need to perform a transform on each byte before doing anyting with i...
central include file for FastLED, defines the CFastLED class/object
LIB8STATIC_ALWAYS_INLINE uint8_t scale8(uint8_t i, fract8 scale)
scale one byte by a second one, which is treated as the numerator of a fraction whose denominator is ...