FastLED 3.6.0
Loading...
Searching...
No Matches
fastspi_types.h
Go to the documentation of this file.
1
3
4#ifndef __INC_FASTSPI_TYPES_H
5#define __INC_FASTSPI_TYPES_H
6
7#include "FastLED.h"
8
9FASTLED_NAMESPACE_BEGIN
10
16
18#define SPI_B0 (RGB_BYTE0(RGB_ORDER) + (MASK_SKIP_BITS & SKIP))
20#define SPI_B1 (RGB_BYTE1(RGB_ORDER) + (MASK_SKIP_BITS & SKIP))
22#define SPI_B2 (RGB_BYTE2(RGB_ORDER) + (MASK_SKIP_BITS & SKIP))
24#define SPI_ADVANCE (3 + (MASK_SKIP_BITS & SKIP))
26
34class DATA_NOP {
35public:
38 static __attribute__((always_inline)) inline uint8_t adjust(FASTLED_REGISTER uint8_t data) { return data; }
39
44 static __attribute__((always_inline)) inline uint8_t adjust(FASTLED_REGISTER uint8_t data, FASTLED_REGISTER uint8_t scale) { return scale8(data, scale); }
45
48 static __attribute__((always_inline)) inline void postBlock(int /* len */) { }
49};
50
52#define FLAG_START_BIT 0x80
53
56#define MASK_SKIP_BITS 0x3F
57
60
62#define SPEED_DIV_2 2
64#define SPEED_DIV_4 4
66#define SPEED_DIV_8 8
68#define SPEED_DIV_16 16
70#define SPEED_DIV_32 32
72#define SPEED_DIV_64 64
74#define SPEED_DIV_128 128
76
79#define MAX_DATA_RATE 0
80
81FASTLED_NAMESPACE_END
82
83#endif
central include file for FastLED, defines the CFastLED class/object
Dummy class for output controllers that need no data transformations.
static uint8_t adjust(FASTLED_REGISTER uint8_t data, FASTLED_REGISTER uint8_t scale)
static void postBlock(int)
Hook called after a block of data is written to the output.
static uint8_t adjust(FASTLED_REGISTER uint8_t data)
Hook called to adjust a byte of data before writing it to the output.
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 ...
Definition scale8.h:30