FastLED 3.9.15
Loading...
Searching...
No Matches
fl::IChannelDriver::PollNeededCallback Struct Reference

Detailed Description

ISR-safe callback handle invoked when the manager should poll again.

ChannelManager installs this callback on every driver and owns the corresponding wait primitive. A driver may call it from an ISR when a chunk, batch, or transfer changed state. It does not imply READY; it only means the manager should wake and poll. Drivers that do not have such a signal leave this unused; the manager's timed wait slice is the fallback.

Definition at line 58 of file driver.h.

#include <driver.h>

Public Types

using Callback = void (*)(void*) FL_NOEXCEPT
 

Public Member Functions

constexpr PollNeededCallback () FL_NOEXCEPT=default
 
constexpr PollNeededCallback (Callback cb, void *ctx) FL_NOEXCEPT
 
void invoke () const FL_NOEXCEPT
 
bool isValid () const FL_NOEXCEPT
 
 operator bool () const FL_NOEXCEPT
 

Public Attributes

Callback callback = nullptr
 
void * context = nullptr
 

The documentation for this struct was generated from the following file: