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
fn open(&mut self) -> ControlResult<()>
[src]
fn open(&mut self) -> ControlResult<()>
[src]Opens the handle.
fn close(&mut self) -> ControlResult<()>
[src]
fn close(&mut self) -> ControlResult<()>
[src]Closes the handle.
Reads data from the device’s memory.
Reads length is same as buf.len()
.
Writes data to the device’s memory.
fn genapi(&mut self) -> ControlResult<String>
[src]
fn genapi(&mut self) -> ControlResult<String>
[src]Returns GenICam
xml string.
fn enable_streaming(&mut self) -> ControlResult<()>
[src]
fn enable_streaming(&mut self) -> ControlResult<()>
[src]Enables streaming.
fn disable_streaming(&mut self) -> ControlResult<()>
[src]
fn disable_streaming(&mut self) -> ControlResult<()>
[src]Disables streaming.