FastLED 3.10.6
Loading...
Searching...
No Matches
can_match.h File Reference

Detailed Description

Free function that decides whether a ChannelRequest can be served by a driver's published capability data (#3186).

The function operates purely on data: a DriverCapabilities snapshot

  • a span of PinGroup descriptors + a ChannelRequest. No IChannelDriver instance is required, which makes the compatibility matrix testable in isolation against synthetic fixtures.

IChannelDriver::canMatch() default-implements to this function; the Channel Manager's resolver calls it directly against cached driver snapshots to avoid per-channel virtual dispatch.

Definition in file can_match.h.

+ Include dependency graph for can_match.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fl
 Base definition for an LED controller.
 

Functions

HandleResult fl::canMatch (const DriverCapabilities &caps, fl::span< const PinGroup > groups, const ChannelRequest &request) FL_NO_EXCEPT
 Test a request (single-pin OR multi-pin ganged) against a driver's published capability data.