• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16export class DeviceAttribute {
17  public busAddress: number; // 总线地址
18  public deviceAddress: number; // 设备地址
19  public serial: string; // 序列号
20  public name: string; // 设备名字
21  public manufacturerName: string; // 产商信息
22  public productName: string; // 产品信息
23  public version: string; // 版本
24  public vendorId: number; // 厂商ID
25  public productId: number; // 产品ID
26  public clazz: number; // 设备类
27
28  constructor() {
29    this.busAddress = 0;
30    this.deviceAddress = 0;
31    this.serial = '';
32    this.name = '';
33    this.manufacturerName = '';
34    this.productName = '';
35    this.version = '';
36    this.vendorId = 0;
37    this.productId = 0;
38    this.clazz = 0;
39  }
40}