22 #ifndef PLUGINS_SPIDMX_SPIDMXPARSER_H_ 23 #define PLUGINS_SPIDMX_SPIDMXPARSER_H_ 36 : m_dmx_buffer(buffer),
38 m_state(WAIT_FOR_BREAK),
40 m_chunk_spi_bytecount(0),
41 m_state_spi_bitcount(0),
42 m_current_dmx_value(0),
44 m_sampling_position(0) {
46 void ParseDmx(uint8_t *buffer, uint64_t chunksize);
48 m_callback = callback;
58 IN_STARTCODE_STOPBITS,
65 int8_t DetectFallingEdge(uint8_t byte);
66 int8_t DetectRisingEdge(uint8_t byte);
68 void ChangeState(SPIDMXParser::dmx_state_t new_state);
69 void PacketComplete();
77 void InStartcodeStopbits();
78 void InDataStartbit();
81 void InDataStopbits();
90 SPIDMXParser::dmx_state_t m_state;
96 uint64_t m_chunk_spi_bytecount;
102 uint64_t m_state_spi_bitcount;
105 uint8_t m_current_dmx_value;
108 int16_t m_channel_count;
111 uint8_t m_sampling_position;
119 #endif // PLUGINS_SPIDMX_SPIDMXPARSER_H_
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
A class used to hold a single universe of DMX data.
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
Definition: SPIDMXParser.h:33
void ParseDmx(uint8_t *buffer, uint64_t chunksize)
Definition: SPIDMXParser.cpp:56