|
FastLED 3.9.15
|
Data types and constants used by SPI interfaces.
Definition in file fastspi_types.h.
Include dependency graph for fastspi_types.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | DATA_NOP |
| Dummy class for output controllers that need no data transformations. More... | |
Macros | |
| #define | __INC_FASTSPI_TYPES_H |
| #define | FLAG_START_BIT 0x80 |
| Flag for the start of an SPI transaction. | |
| #define | MASK_SKIP_BITS 0x3F |
| Bitmask for the lower 6 bits of a byte. | |
| #define | MAX_DATA_RATE 0 |
| Max SPI data rate. | |
Byte Re-Order Macros | |
Some helper macros for getting at mis-ordered byte values.
| |
| #define | SPI_ADVANCE (3 + (MASK_SKIP_BITS & SKIP)) |
| Advance SPI data pointer. | |
| #define | SPI_B0 (RGB_BYTE0(RGB_ORDER) + (MASK_SKIP_BITS & SKIP)) |
| Get SPI byte 0 offset. | |
| #define | SPI_B1 (RGB_BYTE1(RGB_ORDER) + (MASK_SKIP_BITS & SKIP)) |
| Get SPI byte 1 offset. | |
| #define | SPI_B2 (RGB_BYTE2(RGB_ORDER) + (MASK_SKIP_BITS & SKIP)) |
| Get SPI byte 2 offset. | |
Clock speed dividers | |
| #define | SPEED_DIV_128 128 |
| Divisor for clock speed by 128. | |
| #define | SPEED_DIV_16 16 |
| Divisor for clock speed by 16. | |
| #define | SPEED_DIV_2 2 |
| Divisor for clock speed by 2. | |
| #define | SPEED_DIV_32 32 |
| Divisor for clock speed by 32. | |
| #define | SPEED_DIV_4 4 |
| Divisor for clock speed by 4. | |
| #define | SPEED_DIV_64 64 |
| Divisor for clock speed by 64. | |
| #define | SPEED_DIV_8 8 |
| Divisor for clock speed by 8. | |