Trait cameleon::camera::DeviceControl[][src]

pub trait DeviceControl {
    fn open(&mut self) -> ControlResult<()>;
fn close(&mut self) -> ControlResult<()>;
fn is_opened(&self) -> bool;
fn read(&mut self, address: u64, buf: &mut [u8]) -> ControlResult<()>;
fn write(&mut self, address: u64, data: &[u8]) -> ControlResult<()>;
fn genapi(&mut self) -> ControlResult<String>;
fn enable_streaming(&mut self) -> ControlResult<()>;
fn disable_streaming(&mut self) -> ControlResult<()>; }
Expand description

This trait provides operations on the device’s memory.

Required methods

Opens the handle.

Closes the handle.

Returns true if device is already opened.

Reads data from the device’s memory.

Reads length is same as buf.len().

Writes data to the device’s memory.

Returns GenICam xml string.

Enables streaming.

Disables streaming.

Implementations on Foreign Types

Implementors