pub struct TriggerState {
pub state: RunState,
pub running: bool,
pub start_allowed: bool,
pub points: u32,
pub target_points: u32,
pub channels: ChannelMask,
pub complete: bool,
pub rejected: bool,
pub conv_edges: [u32; 4],
pub counters: AcqStatus,
}Expand description
触发的运行状态,见 Device::trigger_state。
Fields§
§state: RunState运行阶段。
running: bool运行中(= state == RunState::Running)。
start_allowed: bool现在可以启动新的触发(= 不在运行中)。
points: u32每个目标通道已采到的点数(设备侧计数)。
target_points: u32每个目标通道的目标点数 N(设备里当前的设置;0 = 不限)。
channels: ChannelMask目标通道(设备里组 0 当前的通道掩码)。
complete: bool运行已结束且采满了 N 点(没有被提前停止)。
rejected: bool运行中有 START 或配置写入被设备拒绝过(PL 0.2.1 起)。
conv_edges: [u32; 4]4 个边沿检测器自上电以来检测到的边沿数(启用的检测器才计数)。
counters: AcqStatus采集计数器(丢失、late、丢弃等)。
Implementations§
Source§impl TriggerState
impl TriggerState
Trait Implementations§
Source§impl Clone for TriggerState
impl Clone for TriggerState
Source§fn clone(&self) -> TriggerState
fn clone(&self) -> TriggerState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TriggerState
impl Debug for TriggerState
Source§impl PartialEq for TriggerState
impl PartialEq for TriggerState
impl Copy for TriggerState
impl Eq for TriggerState
impl StructuralPartialEq for TriggerState
Auto Trait Implementations§
impl Freeze for TriggerState
impl RefUnwindSafe for TriggerState
impl Send for TriggerState
impl Sync for TriggerState
impl Unpin for TriggerState
impl UnwindSafe for TriggerState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more