FastLED 3.9.7
Loading...
Searching...
No Matches
fastspi.h File Reference

Detailed Description

Serial peripheral interface (SPI) definitions per platform.

Definition in file fastspi.h.

#include "FastLED.h"
#include "controller.h"
#include "lib8tion.h"
#include "fastspi_bitbang.h"

Go to the source code of this file.

Classes

class  SPIOutput< _DATA_PIN, _CLOCK_PIN, _SPI_CLOCK_DIVIDER >
 Hardware SPI output. More...
 
class  SoftwareSPIOutput< _DATA_PIN, _CLOCK_PIN, _SPI_CLOCK_DIVIDER >
 Software SPI output. More...
 

Macros

#define DATA_RATE_MHZ(X)   ((F_CPU / 1000000L) / X)
 Convert data rate from megahertz (MHz) to clock cycles per bit.
 
#define DATA_RATE_KHZ(X)   ((F_CPU / 1000L) / X)
 Convert data rate from kilohertz (KHz) to clock cycles per bit.
 

Macro Definition Documentation

◆ DATA_RATE_KHZ

#define DATA_RATE_KHZ ( X)    ((F_CPU / 1000L) / X)

Convert data rate from kilohertz (KHz) to clock cycles per bit.

Definition at line 27 of file fastspi.h.

◆ DATA_RATE_MHZ

#define DATA_RATE_MHZ ( X)    ((F_CPU / 1000000L) / X)

Convert data rate from megahertz (MHz) to clock cycles per bit.

Definition at line 25 of file fastspi.h.