---
title: hi_isp_cmos_sensor_mode
description: "定义Sensor模式寄存器。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0052.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0052.html
indexId: 3941df4edaa7711ad29913e6c3b5c461461c190ca2ce40fd3a19cd747d4a69bd65
---
# hi_isp_cmos_sensor_mode

#### 说明

定义Sensor模式寄存器。


#### 定义

```
typedef struct {
hi_u32
sensor_id;
hi_u8
sensor_mode;
hi_bool
valid_dng_raw_format;
hi_isp_dng_raw_format
dng_raw_format;
} hi_isp_cmos_sensor_mode;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| sensor\_id | Sensor ID。 |
| sensor\_mode | Sensor自定义工作模式，不同分辨率与帧率对应不同的工作模式。 |
| valid\_dng\_raw\_format | 预留字段，暂不使用，建议配置为0。 |
| dng\_raw\_format | 预留字段，暂不使用，建议配置为0。 |
