FastLED 3.9.7
Loading...
Searching...
No Matches
fastspi_nop.h
Go to the documentation of this file.
1
4
5#ifndef __INC_FASTSPI_NOP_H
6#define __INC_FASTSPI_NOP_H
7
8#if FASTLED_DOXYGEN // Guard against the arduino ide idiotically including every header file
9
10#include "FastLED.h"
11
13
17template <uint8_t _DATA_PIN, uint8_t _CLOCK_PIN, uint32_t _SPI_CLOCK_DIVIDER>
19 Selectable *m_pSelect;
20
21public:
23 NOPSPIOutput() { m_pSelect = NULL; }
24
26 NOPSPIOutput(Selectable *pSelect) { m_pSelect = pSelect; }
27
29 void setSelect(Selectable *pSelect) { m_pSelect = pSelect; }
30
32 void init() { /* TODO */ }
33
35 void select() { /* TODO */ }
36
38 void release() { /* TODO */ }
39
41 void waitFully();
42
44 template <uint8_t BIT> inline static void writeBit(uint8_t b) { /* TODO */ }
45
47 void writeByte(uint8_t b) { /* TODO */ }
49 void writeWord(uint16_t w) { /* TODO */ }
50
52 static void writeBytesValueRaw(uint8_t value, int len) { /* TODO */ }
53
55 void writeBytesValue(uint8_t value, int len) { /* TODO */ }
56
58 void writeBytes(uint8_t *data, int len) { /* TODO */ }
59
61 template <uint8_t BIT> inline static void writeBit(uint8_t b) { /* TODO */ }
62
64 template <uint8_t FLAGS, class D, EOrder RGB_ORDER> void writePixels(PixelController<RGB_ORDER> pixels, void* context = NULL) { /* TODO */ }
65
66};
67
69
70#endif
71#endif
central include file for FastLED, defines the CFastLED class/object
A nop/stub class, mostly to show the SPI methods that are needed/used by the various SPI chipset impl...
Definition fastspi_nop.h:18
void release()
release the CS select
Definition fastspi_nop.h:38
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:55
void writeWord(uint16_t w)
write a word out via SPI (returns immediately on writing register)
Definition fastspi_nop.h:49
NOPSPIOutput()
Default Constructor.
Definition fastspi_nop.h:23
void writePixels(PixelController< RGB_ORDER > pixels, void *context=NULL)
write out pixel data from the given PixelController object
Definition fastspi_nop.h:64
NOPSPIOutput(Selectable *pSelect)
Constructor with selectable.
Definition fastspi_nop.h:26
void waitFully()
wait until all queued up data has been written
void setSelect(Selectable *pSelect)
set the object representing the selectable
Definition fastspi_nop.h:29
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:58
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:52
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:44
void init()
initialize the SPI subssytem
Definition fastspi_nop.h:32
void select()
latch the CS select
Definition fastspi_nop.h:35
void writeByte(uint8_t b)
write a byte out via SPI (returns immediately on writing register)
Definition fastspi_nop.h:47
Abstract class for "selectable" things.
Definition fastpin.h:34
#define FASTLED_NAMESPACE_END
End of the FastLED namespace.
Definition namespace.h:16
#define FASTLED_NAMESPACE_BEGIN
Start of the FastLED namespace.
Definition namespace.h:14
Pixel controller class.