hi_mpi_vi_get_dev_attr
The
The
Description
Obtains the attributes of a VI device.
Restrictions
If the attributes of a VI device are not set, an error code indicating failure is returned after this API is called.
Prototype
hi_s32 hi_mpi_vi_get_dev_attr(hi_vi_dev vi_dev, hi_vi_dev_attr *dev_attr)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
vi_dev |
Input |
VI device ID. Value range: [0, 4) |
dev_attr |
Output |
Pointer to the attributes of the VI device. |
Returns
- 0: success
- Other values: failure. For details, see VI Return Codes.
Parent topic: VI