[−][src]Struct picontrol::RevPiControl
RevPiControl is an object representing an open file handle to the piControl driver file descriptor.
Methods
impl RevPiControl
[src]
pub fn new() -> Self
[src]
pub fn new_at(path: &str) -> Self
[src]
pub fn open(&mut self) -> Result<bool>
[src]
Open the Pi Control interface.
pub fn close(&mut self)
[src]
Close the Pi Control interface.
pub fn reset(&self) -> Result<c_int>
[src]
Reset Pi Control Interface.
pub fn read(&mut self, offset: u64, length: usize) -> Result<Vec<u8>>
[src]
pub fn write(&mut self, offset: u64, data: &Vec<u8>) -> Result<bool>
[src]
Writes process data at a specific position and a returns a boolean result.
pub fn get_variable_info(&self, name: &str) -> Result<SPIVariable>
[src]
Get the info for a variable.
pub fn get_device_info_list(&self) -> Result<Vec<SDeviceInfo>>
[src]
Gets a description of connected devices.
pub fn get_bit_value(&self, pSpiValue: &mut SPIValue) -> Result<bool>
[src]
Gets the value of one bit in the process image.
pub fn set_bit_value(&self, pSpiValue: &mut SPIValue) -> Result<bool>
[src]
Sets the value of one bit in the process image.
pub fn dump(&mut self, fp: &str) -> Result<bool>
[src]
Trait Implementations
impl Drop for RevPiControl
[src]
Auto Trait Implementations
impl Send for RevPiControl
impl Sync for RevPiControl
impl Unpin for RevPiControl
impl UnwindSafe for RevPiControl
impl RefUnwindSafe for RevPiControl
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,