MCPcopy Create free account
hub / github.com/FastLED/FastLED / fl_spi_log_event

Function fl_spi_log_event

src/platforms/shared/spi_bitbang/spi_isr_engine.cpp.hpp:120–129  ·  view source on GitHub ↗

Log GPIO event to validation buffer */

Source from the content-addressed store, hash-verified

118#ifdef FL_SPI_ISR_VALIDATE
119/* Log GPIO event to validation buffer */
120static inline FL_IRAM void fl_spi_log_event(FastLED_GPIO_Event_Type type, fl::u32 payload) {
121 if (g_isr_state().validation_event_count < FL_SPI_ISR_VALIDATE_SIZE) {
122 FastLED_GPIO_Event *evt = &g_isr_state().validation_events[g_isr_state().validation_event_count++];
123 evt->event_type = (fl::u8)type;
124 evt->padding[0] = 0;
125 evt->padding[1] = 0;
126 evt->padding[2] = 0;
127 evt->payload.gpio_mask = payload;
128 }
129}
130
131/* Validation buffer accessors (main thread) */
132const FastLED_GPIO_Event* fl_spi_get_validation_events(void) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected