---
title: hi_mpi_isp_set_module_ctrl
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0083.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0083.html
indexId: 68c16a7cb970738cf1325205189eeeed204068a0e96d76efc0dc12c259aae4b765
---
# hi_mpi_isp_set_module_ctrl

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | ☓ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | ☓ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | ☓ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | ☓ |
| Atlas 训练系列产品 | ☓ |


#### 功能说明

设置是否启用ISP各功能模块。

该接口对应的寄存器与各模块的使能寄存器复用。


#### 函数原型

```
hi_s32
hi_mpi_isp_set_module_ctrl(
hi_vi_pipe
vi_pipe, const
hi_isp_module_ctrl
*mod_ctrl)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| vi\_pipe | 输入 | VI PIPE号。 取值范围：[0, 12)。 |
| mod\_ctrl | 输入 | 模块控制值。每个比特位控制着ISP中的一个功能模块的使能。 0：开启该模块 1：关闭该模块 |


#### 返回值说明

- 0：成功
- 非0：失败，参见  ISP返回码
。
