pub struct TimeSeriesPortDriver { /* private fields */ }Expand description
TS port driver: standalone asyn PortDriver for time series waveforms.
Generic over the number of channels — Stats uses 23, ROIStat uses a different set, and NDTimeSeries standalone can use any count.
Trait Implementations§
Source§impl PortDriver for TimeSeriesPortDriver
impl PortDriver for TimeSeriesPortDriver
fn base(&self) -> &PortDriverBase
fn base_mut(&mut self) -> &mut PortDriverBase
fn write_int32(&mut self, user: &mut AsynUser, value: i32) -> AsynResult<()>
fn read_float64_array( &mut self, user: &AsynUser, buf: &mut [f64], ) -> AsynResult<usize>
fn connect(&mut self, _user: &AsynUser) -> Result<(), AsynError>
fn disconnect(&mut self, _user: &AsynUser) -> Result<(), AsynError>
fn enable(&mut self, _user: &AsynUser) -> Result<(), AsynError>
fn disable(&mut self, _user: &AsynUser) -> Result<(), AsynError>
fn connect_addr(&mut self, user: &AsynUser) -> Result<(), AsynError>
fn disconnect_addr(&mut self, user: &AsynUser) -> Result<(), AsynError>
fn enable_addr(&mut self, user: &AsynUser) -> Result<(), AsynError>
fn disable_addr(&mut self, user: &AsynUser) -> Result<(), AsynError>
fn get_option(&self, key: &str) -> Result<String, AsynError>
fn set_option(&mut self, key: &str, value: &str) -> Result<(), AsynError>
fn report(&self, level: i32)
fn read_int32(&mut self, user: &AsynUser) -> Result<i32, AsynError>
fn read_int64(&mut self, user: &AsynUser) -> Result<i64, AsynError>
fn write_int64( &mut self, user: &mut AsynUser, value: i64, ) -> Result<(), AsynError>
fn get_bounds_int64(&self, _user: &AsynUser) -> Result<(i64, i64), AsynError>
fn read_float64(&mut self, user: &AsynUser) -> Result<f64, AsynError>
fn write_float64( &mut self, user: &mut AsynUser, value: f64, ) -> Result<(), AsynError>
fn read_octet( &mut self, user: &AsynUser, buf: &mut [u8], ) -> Result<usize, AsynError>
fn write_octet( &mut self, user: &mut AsynUser, data: &[u8], ) -> Result<(), AsynError>
fn read_uint32_digital( &mut self, user: &AsynUser, mask: u32, ) -> Result<u32, AsynError>
fn write_uint32_digital( &mut self, user: &mut AsynUser, value: u32, mask: u32, ) -> Result<(), AsynError>
fn read_enum( &mut self, user: &AsynUser, ) -> Result<(usize, Arc<[EnumEntry]>), AsynError>
fn write_enum( &mut self, user: &mut AsynUser, index: usize, ) -> Result<(), AsynError>
fn write_enum_choices( &mut self, user: &mut AsynUser, choices: Arc<[EnumEntry]>, ) -> Result<(), AsynError>
fn read_generic_pointer( &mut self, user: &AsynUser, ) -> Result<Arc<dyn Any + Sync + Send>, AsynError>
fn write_generic_pointer( &mut self, user: &mut AsynUser, value: Arc<dyn Any + Sync + Send>, ) -> Result<(), AsynError>
fn write_float64_array( &mut self, _user: &AsynUser, _data: &[f64], ) -> Result<(), AsynError>
fn read_int32_array( &mut self, _user: &AsynUser, _buf: &mut [i32], ) -> Result<usize, AsynError>
fn write_int32_array( &mut self, _user: &AsynUser, _data: &[i32], ) -> Result<(), AsynError>
fn read_int8_array( &mut self, _user: &AsynUser, _buf: &mut [i8], ) -> Result<usize, AsynError>
fn write_int8_array( &mut self, _user: &AsynUser, _data: &[i8], ) -> Result<(), AsynError>
fn read_int16_array( &mut self, _user: &AsynUser, _buf: &mut [i16], ) -> Result<usize, AsynError>
fn write_int16_array( &mut self, _user: &AsynUser, _data: &[i16], ) -> Result<(), AsynError>
fn read_int64_array( &mut self, _user: &AsynUser, _buf: &mut [i64], ) -> Result<usize, AsynError>
fn write_int64_array( &mut self, _user: &AsynUser, _data: &[i64], ) -> Result<(), AsynError>
fn read_float32_array( &mut self, _user: &AsynUser, _buf: &mut [f32], ) -> Result<usize, AsynError>
fn write_float32_array( &mut self, _user: &AsynUser, _data: &[f32], ) -> Result<(), AsynError>
fn io_read_octet( &mut self, user: &AsynUser, buf: &mut [u8], ) -> Result<usize, AsynError>
fn io_write_octet( &mut self, user: &mut AsynUser, data: &[u8], ) -> Result<(), AsynError>
fn io_read_int32(&mut self, user: &AsynUser) -> Result<i32, AsynError>
fn io_write_int32( &mut self, user: &mut AsynUser, value: i32, ) -> Result<(), AsynError>
fn io_read_int64(&mut self, user: &AsynUser) -> Result<i64, AsynError>
fn io_write_int64( &mut self, user: &mut AsynUser, value: i64, ) -> Result<(), AsynError>
fn io_read_float64(&mut self, user: &AsynUser) -> Result<f64, AsynError>
fn io_write_float64( &mut self, user: &mut AsynUser, value: f64, ) -> Result<(), AsynError>
fn io_read_uint32_digital( &mut self, user: &AsynUser, mask: u32, ) -> Result<u32, AsynError>
fn io_write_uint32_digital( &mut self, user: &mut AsynUser, value: u32, mask: u32, ) -> Result<(), AsynError>
fn io_flush(&mut self, _user: &mut AsynUser) -> Result<(), AsynError>
Source§fn drv_user_create(&self, drv_info: &str) -> Result<usize, AsynError>
fn drv_user_create(&self, drv_info: &str) -> Result<usize, AsynError>
Resolve a driver info string to a parameter index.
Default: look up by parameter name.
Source§fn capabilities(&self) -> Vec<Capability>
fn capabilities(&self) -> Vec<Capability>
Declare the capabilities this driver supports.
Default implementation includes all scalar read/write operations.
Source§fn supports(&self, cap: Capability) -> bool
fn supports(&self, cap: Capability) -> bool
Check if this driver supports a specific capability.
fn init(&mut self) -> Result<(), AsynError>
Auto Trait Implementations§
impl !Freeze for TimeSeriesPortDriver
impl !RefUnwindSafe for TimeSeriesPortDriver
impl Send for TimeSeriesPortDriver
impl Sync for TimeSeriesPortDriver
impl Unpin for TimeSeriesPortDriver
impl UnsafeUnpin for TimeSeriesPortDriver
impl !UnwindSafe for TimeSeriesPortDriver
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more