23#ifndef PROTOCORE_SEN0192_H
24#define PROTOCORE_SEN0192_H
44 uint32_t last_active_ms;
45 uint32_t motion_events;
49void pc_sen0192_motion_init(Sen0192Motion *m, uint32_t hold_ms,
bool active_high);
55bool pc_sen0192_motion_update(Sen0192Motion *m,
bool level_high, uint32_t now_ms);
61bool pc_sen0192_motion_tick(Sen0192Motion *m, uint32_t now_ms);
64bool pc_sen0192_motion_present(
const Sen0192Motion *m);
67uint32_t pc_sen0192_motion_events(
const Sen0192Motion *m);
70uint32_t pc_sen0192_motion_active_age_ms(
const Sen0192Motion *m, uint32_t now_ms);
78bool pc_sen0192_begin(
void);
81bool pc_sen0192_poll(
void);
84bool pc_sen0192_present(
void);
87uint32_t pc_sen0192_motion_count(
void);
User-facing configuration for ProtoCore.