Skip to main content

connect_u3v

Function connect_u3v 

Source
pub fn connect_u3v(
    device: &U3vDeviceInfo,
) -> Result<Camera<U3vRegisterIo<RusbTransfer>>, GenicamError>
Expand description

Connect to a USB3 Vision camera and return a fully configured Camera.

This convenience function handles all connection boilerplate:

  1. Opens the USB device and claims U3V interfaces
  2. Reads ABRM/SBRM bootstrap registers
  3. Fetches and parses the GenApi XML from the manifest table
  4. Builds the nodemap and creates the transport adapter

§Example

use viva_genicam::{u3v, connect_u3v};

let devices = u3v::discovery::discover()?;
let device = devices.into_iter().next().expect("no U3V camera found");
let mut camera = connect_u3v(&device)?;
camera.set("ExposureTime", "5000")?;