---
title: DeviceContext
description: "设备内容设置。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0213.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0213.html
indexId: f3acf5f83aab3e50b0b8a0c1f28022c2681d810e0fdb30e7d903235d4cc1d7b9102
---
# DeviceContext

#### 功能

设备内容设置。


#### 结构定义

```
struct DeviceContext {
enum DeviceStatus {
IDLE = 0,  // idle status
USING      // running status
} devStatus = IDLE;
int32_t devId = 0;
};
```


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| devStatus | 设备状态，默认为idle闲置。 |
| devId | 设备ID。 |
