pub struct EpidSoftCallbackDeviceSupport { /* private fields */ }Expand description
Async Soft Channel device support for the epid record.
Same PID algorithm as EpidSoftDeviceSupport, but with an
asynchronous readback trigger via the TRIG link.
Processing flow:
- First pass (triggered=false): Write TVAL to TRIG link via ProcessAction::WriteDbLink, and request a re-process via ProcessAction::ReprocessAfter(1ms). The TRIG write triggers the readback hardware to update the INP PV.
- Second pass (triggered=true): INP has been updated by the triggered readback. Run PID with the fresh CVAL.
Ported from devEpidSoftCallback.c.
Implementations§
Trait Implementations§
Source§impl DeviceSupport for EpidSoftCallbackDeviceSupport
impl DeviceSupport for EpidSoftCallbackDeviceSupport
fn dtyp(&self) -> &str
Source§fn read(&mut self, record: &mut dyn Record) -> CaResult<DeviceReadOutcome>
fn read(&mut self, record: &mut dyn Record) -> CaResult<DeviceReadOutcome>
Read from hardware into the record. Read more
fn write(&mut self, _record: &mut dyn Record) -> CaResult<()>
fn init(&mut self, _record: &mut (dyn Record + 'static)) -> Result<(), CaError>
Source§fn last_alarm(&self) -> Option<(u16, u16)>
fn last_alarm(&self) -> Option<(u16, u16)>
Return the last alarm (status, severity) from the driver.
None means the driver does not override alarms.
Source§fn last_timestamp(&self) -> Option<SystemTime>
fn last_timestamp(&self) -> Option<SystemTime>
Return the last timestamp from the driver.
None means the driver does not override timestamps.
Source§fn set_record_info(&mut self, _name: &str, _scan: ScanType)
fn set_record_info(&mut self, _name: &str, _scan: ScanType)
Called after init() with the record name and scan type.
Source§fn io_intr_receiver(&mut self) -> Option<Receiver<()>>
fn io_intr_receiver(&mut self) -> Option<Receiver<()>>
Return a receiver for I/O Intr scan notifications.
Only called for records with SCAN=I/O Intr.
Source§fn write_begin(
&mut self,
_record: &mut (dyn Record + 'static),
) -> Result<Option<Box<dyn WriteCompletion>>, CaError>
fn write_begin( &mut self, _record: &mut (dyn Record + 'static), ) -> Result<Option<Box<dyn WriteCompletion>>, CaError>
Begin an asynchronous write (submit only, no blocking).
Returns
Some(handle) if the write was submitted to a worker queue —
the caller should wait on the handle outside any record lock.
Returns None to fall back to synchronous write().Source§fn handle_command(
&mut self,
_record: &mut (dyn Record + 'static),
_command: &str,
_args: &[EpicsValue],
) -> Result<(), CaError>
fn handle_command( &mut self, _record: &mut (dyn Record + 'static), _command: &str, _args: &[EpicsValue], ) -> Result<(), CaError>
Handle a named command from the record’s process() via
ProcessAction::DeviceCommand. This allows records to request
driver operations (e.g., scaler reset/arm/write_preset) without
holding a direct driver reference. Read moreAuto Trait Implementations§
impl Freeze for EpidSoftCallbackDeviceSupport
impl RefUnwindSafe for EpidSoftCallbackDeviceSupport
impl Send for EpidSoftCallbackDeviceSupport
impl Sync for EpidSoftCallbackDeviceSupport
impl Unpin for EpidSoftCallbackDeviceSupport
impl UnsafeUnpin for EpidSoftCallbackDeviceSupport
impl UnwindSafe for EpidSoftCallbackDeviceSupport
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