rsiot/components/cmp_plc/plc/library/event_processing/event/mod.rs
1//! Функциональный блок события
2
3mod i;
4mod logic;
5mod q;
6mod s;
7#[cfg(test)]
8mod tests;
9
10pub use i::*;
11pub use q::*;
12pub use s::*;
13
14use crate::components::cmp_plc::plc::{FbSystemData, FunctionBlockBase, IFunctionBlock};
15
16/// motor
17pub type FB = FunctionBlockBase<I, Q, S>;
18
19impl IFunctionBlock<I, Q, S> for FunctionBlockBase<I, Q, S> {
20 fn logic(input: &mut I, stat: &mut S, _system_data: &FbSystemData) -> Q {
21 logic::logic(input, stat)
22 }
23}