23#ifndef DETERMINISTICESPASYNCWEBSERVER_SEN0192_H
24#define DETERMINISTICESPASYNCWEBSERVER_SEN0192_H
28#if DETWS_ENABLE_SEN0192
44 uint32_t last_active_ms;
45 uint32_t motion_events;
49void sen0192_motion_init(Sen0192Motion *m, uint32_t hold_ms,
bool active_high);
55bool sen0192_motion_update(Sen0192Motion *m,
bool level_high, uint32_t now_ms);
61bool sen0192_motion_tick(Sen0192Motion *m, uint32_t now_ms);
64bool sen0192_motion_present(
const Sen0192Motion *m);
67uint32_t sen0192_motion_events(
const Sen0192Motion *m);
70uint32_t sen0192_motion_active_age_ms(
const Sen0192Motion *m, uint32_t now_ms);
78bool sen0192_begin(
void);
81bool sen0192_poll(
void);
84bool sen0192_present(
void);
87uint32_t sen0192_motion_count(
void);
User-facing configuration for DeterministicESPAsyncWebServer.