#ifndef LAMP_DIAGNOSTIC_RUNTIME_H
#define LAMP_DIAGNOSTIC_RUNTIME_H
#include "pca9956b_async_bank.h"
typedef enum {LDR_UNINITIALIZED,LDR_RESET_HOLD,LDR_RESET_RECOVERY,LDR_READING,LDR_FAULT} lamp_diag_state;
/* Main-loop exclusive owner. Diagnostic reads only; no LED permission. */
void lamp_diagnostic_runtime_init(uint32_t now);
void lamp_diagnostic_runtime_poll(uint32_t now);
lamp_diag_state lamp_diagnostic_runtime_state(void);
bool lamp_diagnostic_runtime_get(uint32_t now,pca_async_snapshot *out);
bool lamp_diagnostic_runtime_needs_poll(void);
#endif
