pub struct ControlShared { /* private fields */ }Expand description
Shared data between control request handler and application API.
Implementations§
Sourcepub const fn new(capabilities: Capabilities, usb488: bool) -> Self
pub const fn new(capabilities: Capabilities, usb488: bool) -> Self
Creates a new ControlShared.
Sourcepub fn set_status_byte(&self, stb: u8)
pub fn set_status_byte(&self, stb: u8)
Sets the IEEE 488.2 status byte (*STB).
Sourcepub fn status_byte(&self) -> u8
pub fn status_byte(&self) -> u8
Gets the current IEEE 488.2 status byte (*STB).
Sourcepub fn check_clear(&self) -> bool
pub fn check_clear(&self) -> bool
Checks if a clear request was issued by the host, clearing the flag if set.
Sourcepub fn set_clear_pending(&self, val: bool)
pub fn set_clear_pending(&self, val: bool)
Sets or clears the pending clear flag.
Sourcepub fn indicator_pulse_count(&self) -> u32
pub fn indicator_pulse_count(&self) -> u32
Gets the number of indicator pulses received from the host.
Sourcepub fn increment_indicator_pulse(&self)
pub fn increment_indicator_pulse(&self)
Increments the indicator pulse counter.
Sourcepub fn trigger_count(&self) -> u32
pub fn trigger_count(&self) -> u32
Gets the total number of hardware trigger commands received.
Auto Trait Implementations§
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