FastLED 3.9.15
Loading...
Searching...
No Matches
fastspi_nop.h
Go to the documentation of this file.
1#pragma once
2
6
7#ifndef __INC_FASTSPI_NOP_H
8#define __INC_FASTSPI_NOP_H
9
10#if FASTLED_DOXYGEN // Guard against the arduino ide idiotically including every header file
11
12#include "FastLED.h"
13
15
19template <uint8_t _DATA_PIN, uint8_t _CLOCK_PIN, uint32_t _SPI_CLOCK_DIVIDER>
22
23public:
25 NOPSPIOutput() { m_pSelect = NULL; }
26
28 NOPSPIOutput(Selectable *pSelect) { m_pSelect = pSelect; }
29
31 void setSelect(Selectable *pSelect) { m_pSelect = pSelect; }
32
34 void init() { /* TODO */ }
35
37 void select() { /* TODO */ }
38
40 void release() { /* TODO */ }
41
43 void waitFully();
44
46 template <uint8_t BIT> inline static void writeBit(uint8_t b) { /* TODO */ }
47
49 void writeByte(uint8_t b) { /* TODO */ }
51 void writeWord(uint16_t w) { /* TODO */ }
52
54 static void writeBytesValueRaw(uint8_t value, int len) { /* TODO */ }
55
57 void writeBytesValue(uint8_t value, int len) { /* TODO */ }
58
60 void writeBytes(uint8_t *data, int len) { /* TODO */ }
61
63 template <uint8_t BIT> inline static void writeBit(uint8_t b) { /* TODO */ }
64
66 template <uint8_t FLAGS, class D, EOrder RGB_ORDER> void writePixels(PixelController<RGB_ORDER> pixels, void* context = NULL) { /* TODO */ }
67
68};
69
71
72#endif
73#endif
central include file for FastLED, defines the CFastLED class/object
void release()
release the CS select
Definition fastspi_nop.h:40
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:57
void writeWord(uint16_t w)
write a word out via SPI (returns immediately on writing register)
Definition fastspi_nop.h:51
NOPSPIOutput()
Default Constructor.
Definition fastspi_nop.h:25
void writePixels(PixelController< RGB_ORDER > pixels, void *context=NULL)
write out pixel data from the given PixelController object
Definition fastspi_nop.h:66
NOPSPIOutput(Selectable *pSelect)
Constructor with selectable.
Definition fastspi_nop.h:28
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: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:60
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:54
Selectable * m_pSelect
Definition fastspi_nop.h:21
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:46
void init()
initialize the SPI subssytem
Definition fastspi_nop.h:34
void select()
latch the CS select
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:49
Abstract class for "selectable" things.
Definition fastpin.h:36
#define FASTLED_NAMESPACE_END
Definition namespace.h:23
Pixel controller class.