FastLED 3.9.3
|
Data types and constants used by SPI interfaces.
Definition in file fastspi_types.h.
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 | 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_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. | |
#define | SPI_ADVANCE (3 + (MASK_SKIP_BITS & SKIP)) |
Advance SPI data pointer. | |
Clock speed dividers | |
#define | SPEED_DIV_2 2 |
Divisor for clock speed by 2. | |
#define | SPEED_DIV_4 4 |
Divisor for clock speed by 4. | |
#define | SPEED_DIV_8 8 |
Divisor for clock speed by 8. | |
#define | SPEED_DIV_16 16 |
Divisor for clock speed by 16. | |
#define | SPEED_DIV_32 32 |
Divisor for clock speed by 32. | |
#define | SPEED_DIV_64 64 |
Divisor for clock speed by 64. | |
#define | SPEED_DIV_128 128 |
Divisor for clock speed by 128. | |
#define FLAG_START_BIT 0x80 |
Flag for the start of an SPI transaction.
Definition at line 54 of file fastspi_types.h.
#define MASK_SKIP_BITS 0x3F |
Bitmask for the lower 6 bits of a byte.
Definition at line 58 of file fastspi_types.h.
#define MAX_DATA_RATE 0 |
#define SPEED_DIV_128 128 |
Divisor for clock speed by 128.
Definition at line 76 of file fastspi_types.h.
#define SPEED_DIV_16 16 |
Divisor for clock speed by 16.
Definition at line 70 of file fastspi_types.h.
#define SPEED_DIV_2 2 |
Divisor for clock speed by 2.
Definition at line 64 of file fastspi_types.h.
#define SPEED_DIV_32 32 |
Divisor for clock speed by 32.
Definition at line 72 of file fastspi_types.h.
#define SPEED_DIV_4 4 |
Divisor for clock speed by 4.
Definition at line 66 of file fastspi_types.h.
#define SPEED_DIV_64 64 |
Divisor for clock speed by 64.
Definition at line 74 of file fastspi_types.h.
#define SPEED_DIV_8 8 |
Divisor for clock speed by 8.
Definition at line 68 of file fastspi_types.h.
#define SPI_ADVANCE (3 + (MASK_SKIP_BITS & SKIP)) |
Advance SPI data pointer.
Definition at line 26 of file fastspi_types.h.
#define SPI_B0 (RGB_BYTE0(RGB_ORDER) + (MASK_SKIP_BITS & SKIP)) |
Get SPI byte 0 offset.
Definition at line 20 of file fastspi_types.h.
#define SPI_B1 (RGB_BYTE1(RGB_ORDER) + (MASK_SKIP_BITS & SKIP)) |
Get SPI byte 1 offset.
Definition at line 22 of file fastspi_types.h.
#define SPI_B2 (RGB_BYTE2(RGB_ORDER) + (MASK_SKIP_BITS & SKIP)) |
Get SPI byte 2 offset.
Definition at line 24 of file fastspi_types.h.