hi_mpi_vi_get_pipe_vc_number

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

☓

Atlas A3 training products/Atlas A3 inference products

☓

Atlas A2 training products/Atlas A2 inference products

☓

Atlas 200I/500 A2 inference products

√

Atlas inference products

☓

Atlas training products

☓

Function

Obtains the VC ID of a physical VI pipe to connect to the front-end sensor.

Prototype

hi_s32 hi_mpi_vi_get_pipe_vc_number(hi_vi_pipe vi_pipe, hi_u32 *vc_number)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

Physical pipe ID.

Value range: [0, 4)

vc_number

Output

VC ID.

Returns

Restrictions

  • This API must be called after a pipe is created and before the pipe is enabled.
  • Virtual pipes are not supported.