FastLED 3.10.6
Loading...
Searching...
No Matches

◆ strength()

fl::u8 fl::can_match_detail::strength ( HandleResult r)
inline

Definition at line 17 of file can_match.cpp.hpp.

17 {
18 switch (r) {
19 case HandleResult::Yes: return 100u;
20 case HandleResult::NoPinPair: return 50u;
21 case HandleResult::NoPin: return 45u;
22 case HandleResult::NoFrequency: return 40u;
23 case HandleResult::NoTiming: return 35u;
24 case HandleResult::NoCapacity: return 30u;
25 case HandleResult::NoProtocol: return 10u;
26 }
27 return 0u;
28}
@ NoPinPair
clock pin not in the matching group's allowlist
@ NoProtocol
driver doesn't support the requested Protocol
@ NoPin
data pin not in any matching group's allowlist
@ NoCapacity
group full / driver-total cap reached
@ NoTiming
chipset tolerance windows can't be hit
@ NoFrequency
requested freq outside driver/group range

References fl::FL_NO_EXCEPT, fl::NoCapacity, fl::NoFrequency, fl::NoPin, fl::NoPinPair, fl::NoProtocol, fl::NoTiming, and fl::Yes.

Referenced by fl::canMatch().

+ Here is the caller graph for this function: