提交 fc7b6554 authored 作者: Serhij S's avatar Serhij S

docs

上级 60bb0618
...@@ -17,6 +17,10 @@ together. ...@@ -17,6 +17,10 @@ together.
RoboPLC is a part of [EVA ICS](https://www.eva-ics.com/) industrial RoboPLC is a part of [EVA ICS](https://www.eva-ics.com/) industrial
automation platform. automation platform.
Real-time-safe data synchronization primitives are re-exported from the
[RTSC](https://docs.rs/rtsc) crate which is a part of RoboPLC project and can
be used directly, with no requirement to use RoboPLC.
## Technical documentation ## Technical documentation
Available at <https://info.bma.ai/en/actual/roboplc/index.html> Available at <https://info.bma.ai/en/actual/roboplc/index.html>
...@@ -65,7 +69,7 @@ width="550" /> ...@@ -65,7 +69,7 @@ width="550" />
## pdeque and pchannel ## pdeque and pchannel
A policy-based deque [`pdeque::Deque`] is a component to build policy-based A policy-based deque [`rtsc::pdeque::Deque`] is a component to build policy-based
channels. channels.
[`pchannel`] is a channel module, based on the policy-based deque. [`pchannel`] is a channel module, based on the policy-based deque.
......
...@@ -3,6 +3,7 @@ use roboplc::{ ...@@ -3,6 +3,7 @@ use roboplc::{
time::interval, time::interval,
}; };
use roboplc::{io::modbus::prelude::*, prelude::*}; use roboplc::{io::modbus::prelude::*, prelude::*};
use rtsc::cell::TtlCell;
use tracing::{error, info, warn}; use tracing::{error, info, warn};
const MODBUS_TIMEOUT: Duration = Duration::from_secs(1); const MODBUS_TIMEOUT: Duration = Duration::from_secs(1);
......
use crate::io::{modbus::ModbusRegister, IoMapping}; use crate::io::{modbus::ModbusRegister, IoMapping};
use crate::{ use crate::{
comm::{self, Protocol}, comm::{self, Protocol},
semaphore::Semaphore,
Error, Result, Error, Result,
}; };
use binrw::{BinRead, BinWrite}; use binrw::{BinRead, BinWrite};
...@@ -10,6 +9,7 @@ use rmodbus::{ ...@@ -10,6 +9,7 @@ use rmodbus::{
server::{context::ModbusContext, storage::ModbusStorage, ModbusFrame}, server::{context::ModbusContext, storage::ModbusStorage, ModbusFrame},
ModbusFrameBuf, ModbusProto, ModbusFrameBuf, ModbusProto,
}; };
use rtsc::semaphore::Semaphore;
use serial::SystemPort; use serial::SystemPort;
use std::time::Duration; use std::time::Duration;
use std::{ use std::{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论