BitClear Filter¶
-
template<typename T, uint32_t BitPosition>
struct BitClear¶ Filter that only accepts values when a specific bit is clear (0).
This filter propagates changes only when the specified bit position in the new value is cleared to 0.
- Since
v0.1.0
// Example: Only propagate when bit 7 is clear Signal<uint8_t, 10, BitClear<uint8_t, 7>> ready(0xFF);Warning
Only accepts integral types (
int,long, etc.).BitPositionmust be less thansizeof(T) * 8.
See Also¶
Bitwise Filters - Overview