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#include "fl/int.h"
14
16
20template <fl::u8 _DATA_PIN, fl::u8 _CLOCK_PIN, uint32_t _SPI_CLOCK_DIVIDER>
23
24public:
26 NOPSPIOutput() { m_pSelect = NULL; }
27
29 NOPSPIOutput(Selectable *pSelect) { m_pSelect = pSelect; }
30
32 void setSelect(Selectable *pSelect) { m_pSelect = pSelect; }
33
35 void init() { /* TODO */ }
36
38 void select() { /* TODO */ }
39
41 void release() { /* TODO */ }
42
44 void waitFully();
45
47 template <fl::u8 BIT> inline static void writeBit(fl::u8 b) { /* TODO */ }
48
50 void writeByte(fl::u8 b) { /* TODO */ }
52 void writeWord(uint16_t w) { /* TODO */ }
53
55 static void writeBytesValueRaw(fl::u8 value, int len) { /* TODO */ }
56
58 void writeBytesValue(fl::u8 value, int len) { /* TODO */ }
59
61 void writeBytes(fl::u8 *data, int len) { /* TODO */ }
62
64 template <fl::u8 BIT> inline static void writeBit(fl::u8 b) { /* TODO */ }
65
67 template <fl::u8 FLAGS, class D, EOrder RGB_ORDER> void writePixels(PixelController<RGB_ORDER> pixels, void* context = NULL) { /* TODO */ }
68
69};
70
72
73#endif
74#endif
central include file for FastLED, defines the CFastLED class/object
void release()
release the CS select
Definition fastspi_nop.h:41
void writeBytes(fl::u8 *data, int len)
A full cycle of writing a raw block of data out, including select, release, and waiting.
Definition fastspi_nop.h:61
void writeWord(uint16_t w)
write a word out via SPI (returns immediately on writing register)
Definition fastspi_nop.h:52
NOPSPIOutput()
Default Constructor.
Definition fastspi_nop.h:26
void writePixels(PixelController< RGB_ORDER > pixels, void *context=NULL)
write out pixel data from the given PixelController object
Definition fastspi_nop.h:67
NOPSPIOutput(Selectable *pSelect)
Constructor with selectable.
Definition fastspi_nop.h:29
static void writeBytesValueRaw(fl::u8 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:55
void writeByte(fl::u8 b)
write a byte out via SPI (returns immediately on writing register)
Definition fastspi_nop.h:50
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:32
Selectable * m_pSelect
Definition fastspi_nop.h:22
void writeBytesValue(fl::u8 value, int len)
A full cycle of writing a value for len bytes, including select, release, and waiting.
Definition fastspi_nop.h:58
static void writeBit(fl::u8 b)
not the most efficient mechanism in the world - but should be enough for sm16716 and friends
Definition fastspi_nop.h:47
void init()
initialize the SPI subssytem
Definition fastspi_nop.h:35
void select()
latch the CS select
Definition fastspi_nop.h:38
Abstract class for "selectable" things.
Definition fastpin.h:38
#define FASTLED_NAMESPACE_END
Definition namespace.h:23
#define FASTLED_NAMESPACE_BEGIN
Definition namespace.h:22
unsigned char u8
Definition int.h:17
Pixel controller class.