|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
Debounced motion-presence tracker over a single digital line. More...
#include <sen0192.h>
Public Attributes | |
| proto_bool | present |
| presence currently asserted (respecting the hold window) | |
| proto_bool | seeded |
| a first sample has been fed (so the hold timing is meaningful) | |
| proto_bool | active_high |
| the active (motion) state is a logic HIGH | |
| uint32_t | hold_ms |
| presence is held this long after the last active sample | |
| uint32_t | last_active_ms |
| timestamp of the last active-level sample | |
| uint32_t | motion_events |
| count of clear -> present transitions (rising edges of presence) | |
Debounced motion-presence tracker over a single digital line.
Presence asserts on an active-level sample and is held for hold_ms after the last active sample; an inactive stretch longer than hold_ms clears it. Pure: time is passed in, so it is fully host-testable.
| proto_bool Sen0192Motion::present |
| proto_bool Sen0192Motion::seeded |
| proto_bool Sen0192Motion::active_high |
| uint32_t Sen0192Motion::hold_ms |
| uint32_t Sen0192Motion::last_active_ms |
| uint32_t Sen0192Motion::motion_events |