From 9e6b16ead84a45b8b2ac82f4e57ae7be6e8c6f38 Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Mon, 18 Dec 2023 10:22:36 +0800 Subject: [PATCH] =?UTF-8?q?iscs=20FG=E9=98=B2=E6=B7=B9=E9=97=A8=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/iscs_fg.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 component/iscs_fg.go diff --git a/component/iscs_fg.go b/component/iscs_fg.go new file mode 100644 index 0000000..3043e15 --- /dev/null +++ b/component/iscs_fg.go @@ -0,0 +1,15 @@ +package component + +// FloodGate 防淹门 +type FloodGate struct { + State FgState +} + +// FgState 防淹门状态 +type FgState = uint8 + +const ( + FgOpen FgState = iota //开启(电机正常、锁锁定) + FgPreparingClose //准备关闭(电机正常、锁拔出) + FgClosed //已关闭 +)