![]() |
![]() |
![]() |
Aravis Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
ArvInterface; const char * arv_get_device_id (unsigned int index
); const char * arv_get_interface_id (unsigned int index
); unsigned int arv_get_n_devices (void
); unsigned int arv_get_n_interfaces (void
); void arv_update_device_list (void
); ArvDevice * arv_open_device (const char *device_id
); void arv_shutdown (void
); void arv_interface_update_device_list (ArvInterface *interface
); const char * arv_interface_get_device_id (ArvInterface *interface
,unsigned int index
); const char * arv_interface_get_device_physical_id (ArvInterface *interface
,unsigned int index
); unsigned int arv_interface_get_n_devices (ArvInterface *interface
); ArvDevice * arv_interface_open_device (ArvInterface *interface
,const char *device_id
);
ArvCamera is an abstract base class for camera discovery. It maintains a
list of the available devices and help to instantiate the corresponding
ArvDevice object. If user already knows the device id of the device, he should
not worry about this class and just use arv_camera_new()
or
arv_open_device()
.
ArvDevice * arv_open_device (const char *device_id
);
Open a device corresponding to the given identifier. A null string makes this function return the first available device.
|
a device identifier string Return value: (transfer full): a new ArvDevice instance. [allow-none] |
void arv_interface_update_device_list (ArvInterface *interface
);
Updates the internal list of available devices. This may change the connection between a list index and a device ID.
|
a ArvInterface |
const char * arv_interface_get_device_id (ArvInterface *interface
,unsigned int index
);
Queries the unique device id corresponding to index. Prior to this
call the arv_interface_update_device_list
function must be called.
|
a ArvInterface |
|
device index Return value: a unique device id |
const char * arv_interface_get_device_physical_id (ArvInterface *interface
,unsigned int index
);
Queries the physical device id corresponding to index such as the MAC address for Ethernet based devices, bus id for PCI, USB or Firewire based devices.
Prior to this call the arv_interface_update_device_list
function must be called.
|
a ArvInterface |
|
device index Return value: a physical device id |
unsigned int arv_interface_get_n_devices (ArvInterface *interface
);
Queries the number of available devices on this interface. Prior to this
call the arv_interface_update_device_list
function must be called. The list content will not
change until the next call of the update function.
|
a ArvInterface Return value: the number of available devices |
ArvDevice * arv_interface_open_device (ArvInterface *interface
,const char *device_id
);
Creates a new ArvDevice object corresponding to the given device id string. The first available device is returned if device_id
is null.
|
a ArvInterface |
|
device unique id Return value: (transfer full): a new ArvDevice. [allow-none] |