FastLED  3.1
fastspi_nop.h
1 #ifndef __INC_FASTSPI_NOP_H
2 #define __INC_FASTSPI_NOP_H
3 
4 #if 0 // Guard against the arduino ide idiotically including every header file
5 
6 #include "FastLED.h"
7 
8 FASTLED_NAMESPACE_BEGIN
9 
13 template <uint8_t _DATA_PIN, uint8_t _CLOCK_PIN, uint8_t _SPI_CLOCK_DIVIDER>
14 class NOPSPIOutput {
15  Selectable *m_pSelect;
16 
17 public:
18  NOPSPIOutput() { m_pSelect = NULL; }
19  NOPSPIOutput(Selectable *pSelect) { m_pSelect = pSelect; }
20 
22  void setSelect(Selectable *pSelect) { m_pSelect = pSelect; }
23 
25  void init() { /* TODO */ }
26 
28  void select() { /* TODO */ }
29 
31  void release() { /* TODO */ }
32 
34  void waitFully();
35 
37  template <uint8_t BIT> inline static void writeBit(uint8_t b) { /* TODO */ }
38 
40  void writeByte(uint8_t b) { /* TODO */ }
42  void writeWord(uint16_t w) { /* TODO */ }
43 
45  static void writeBytesValueRaw(uint8_t value, int len) { /* TODO */ }
46 
48  void writeBytesValue(uint8_t value, int len) { /* TODO */ }
49 
51  void writeBytes(uint8_t *data, int len) { /* TODO */ }
52 
54  template <uint8_t BIT> inline static void writeBit(uint8_t b) { /* TODO */ }
55 
57  template <uint8_t FLAGS, class D, EOrder RGB_ORDER> void writePixels(PixelController<RGB_ORDER> pixels) { /* TODO */ }
58 
59 };
60 
61 FASTLED_NAMESPACE_END
62 
63 #endif
64 #endif
void release()
release the CS select
Definition: fastspi_nop.h:31
void writeBytes(uint8_t *data, int len)
A full cycle of writing a raw block of data out, including select, release, and waiting.
Definition: fastspi_nop.h:51
static void writeBit(uint8_t b)
not the most efficient mechanism in the world - but should be enough for sm16716 and friends ...
Definition: fastspi_nop.h:37
void writeByte(uint8_t b)
write a byte out via SPI (returns immediately on writing register)
Definition: fastspi_nop.h:40
void setSelect(Selectable *pSelect)
set the object representing the selectable
Definition: fastspi_nop.h:22
void init()
initialize the SPI subssytem
Definition: fastspi_nop.h:25
A nop/stub class, mostly to show the SPI methods that are needed/used by the various SPI chipset impl...
Definition: fastspi_nop.h:14
central include file for FastLED, defines the CFastLED class/object
void select()
latch the CS select
Definition: fastspi_nop.h:28
void writeBytesValue(uint8_t value, int len)
A full cycle of writing a value for len bytes, including select, release, and waiting.
Definition: fastspi_nop.h:48
static void writeBytesValueRaw(uint8_t value, int len)
A raw set of writing byte values, assumes setup/init/waiting done elsewhere (static for use by adjust...
Definition: fastspi_nop.h:45
void waitFully()
wait until all queued up data has been written
void writePixels(PixelController< RGB_ORDER > pixels)
write out pixel data from the given PixelController object
Definition: fastspi_nop.h:57
void writeWord(uint16_t w)
write a word out via SPI (returns immediately on writing register)
Definition: fastspi_nop.h:42