[][src]Struct picontrol::RevPiControl

pub struct RevPiControl { /* fields omitted */ }

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]

dumps the process image to a file.

Arguments

  • fp - The file path

Trait Implementations

impl Drop for RevPiControl[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]