A-SW Hub / Repositories
Local Gitea · READ ONLY
← 저장소 Repositories
REPOSITORY

tymict/icu-safety-runtime Private

[참조 MVP] ICU 안전·실시간 런타임 — 비상정지, 통신 Watchdog과 치명 고장을 단일 안전상태로 집계합니다.

https://git.agrithing.ai/tymict/icu-safety-runtime.git
8 commits
1 items · main
·/ src/component.c
text · 383 B · 9dd66cb Download
#include "component.h"asw_safety_result asw_evaluate_safety(int emergency_stop, int critical_fault_count, unsigned watchdog_age_ms, unsigned watchdog_limit_ms) {  const int unsafe = emergency_stop || critical_fault_count > 0 || watchdog_age_ms > watchdog_limit_ms;  asw_safety_result result = {unsafe ? ASW_SAFE_STOP : ASW_RUN, unsafe ? 0 : 1, unsafe ? 1 : 0};  return result;}