---
title: mipi_dev_attr_t
description: 定义MIPI设备属性。
url: "https://www.hiascend.com/document/detail/zh/canncommercial/900/API/dvpp/aclcppdevg_03_0894.html"
---

# mipi_dev_attr_t

#### 说明

定义MIPI设备属性。


#### 定义

```
typedef struct {
data_type_t
input_data_type;  /* data type: 8/10/12/14/16 bit */
mipi_wdr_mode_t
wdr_mode;     /* MIPI WDR mode */
short lane_id[MIPI_LANE_NUM]; /* lane_id: -1 - disable */
union {
short data_type[WDR_VC_NUM]; /* attribute of MIPI WDR mode. AUTO:mipi_wdr_mode_t:HI_MIPI_WDR_MODE_DT; */
};
} mipi_dev_attr_t;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| input\_data\_type | 传输的数据类型。 |
| lane\_id | 发送端(Sensor)和接收端(MIPI Rx) Lane的对应关系，未使用的Lane设置为\-1。 MIPI\_LANE\_NUM表示8。 |
| wdr\_mode | MIPI WDR模式。 |
| data\_type | 当wdr\_mode为 HI\_MIPI\_WDR\_MODE\_DT时，需要设置data\_type，表示不同曝光长度数据对应的Data Type。 WDR\_VC\_NUM表示4。 |


#### 注意事项

Atlas 200I/500 A2 推理产品 上有8条LANE，如果工作模式采用2+2+2+2方式，则设备0需要使用lane0和lane2，所以lane_id配置为{0, 2, -1, -1, -1, -1, -1, -1}。
