ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
Sen0192Motion Struct Reference

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)
 

Detailed Description

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.

Definition at line 39 of file sen0192.h.

Member Data Documentation

◆ present

proto_bool Sen0192Motion::present

presence currently asserted (respecting the hold window)

Definition at line 41 of file sen0192.h.

◆ seeded

proto_bool Sen0192Motion::seeded

a first sample has been fed (so the hold timing is meaningful)

Definition at line 42 of file sen0192.h.

◆ active_high

proto_bool Sen0192Motion::active_high

the active (motion) state is a logic HIGH

Definition at line 43 of file sen0192.h.

◆ hold_ms

uint32_t Sen0192Motion::hold_ms

presence is held this long after the last active sample

Definition at line 44 of file sen0192.h.

◆ last_active_ms

uint32_t Sen0192Motion::last_active_ms

timestamp of the last active-level sample

Definition at line 45 of file sen0192.h.

◆ motion_events

uint32_t Sen0192Motion::motion_events

count of clear -> present transitions (rising edges of presence)

Definition at line 46 of file sen0192.h.


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