ArvUvDevice

ArvUvDevice — USB3Vision device

Functions

Properties

char * guid Write / Construct Only
char * product Write / Construct Only
char * serial-number Write / Construct Only
char * vendor Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── ArvDevice
        ╰── ArvUvDevice

Description

Functions

arv_uv_device_new ()

ArvDevice *
arv_uv_device_new (const char *vendor,
                   const char *product,
                   const char *serial_number,
                   GError **error);

Parameters

vendor

USB3 vendor string

 

product

USB3 product string

 

serial_number

device serial number

 

error

a GError placeholder, NULL to ignore

 

Returns

a newly created ArvDevice using USB3 based protocol

Since: 0.8.0


arv_uv_device_new_from_guid ()

ArvDevice *
arv_uv_device_new_from_guid (const char *guid,
                             GError **error);

Parameters

guid

device GUID

 

error

a GError placeholder, NULL to ignore

 

Returns

a newly created ArvDevice using USB3 based protocol

Since: 0.8.17


arv_uv_device_set_usb_mode ()

void
arv_uv_device_set_usb_mode (ArvUvDevice *uv_device,
                            ArvUvUsbMode usb_mode);

Sets the option to utilize the USB synchronous or asynchronous device I/O API. The default mode is ARV_UV_USB_MODE_SYNC , which means USB bulk transfer will be synchronously executed. This mode is qualified to work, but it has the performance issue with some high framerate device. Using ARV_UV_USB_MODE_ASYNC possibly improves the bandwidth.

Parameters

uv_device

a ArvUvDevice

 

usb_mode

a ArvUvUsbMode option

 

Since: 0.8.17

Types and Values

enum ArvUvUsbMode

Members

ARV_UV_USB_MODE_SYNC

utilize libusb synchronous device I/O API

 

ARV_UV_USB_MODE_ASYNC

utilize libusb asynchronous device I/O API

 

ARV_UV_USB_MODE_DEFAULT

default usb mode

 

Property Details

The “guid” property

  “guid”                     char *

USB3 device GUID.

Owner: ArvUvDevice

Flags: Write / Construct Only

Default value: NULL


The “product” property

  “product”                  char *

USB3 device product string.

Owner: ArvUvDevice

Flags: Write / Construct Only

Default value: NULL


The “serial-number” property

  “serial-number”            char *

USB3 device serial number.

Owner: ArvUvDevice

Flags: Write / Construct Only

Default value: NULL


The “vendor” property

  “vendor”                   char *

USB3 device vendor string.

Owner: ArvUvDevice

Flags: Write / Construct Only

Default value: NULL