MYNT EYE D SDK  1.7.1
http://www.myntai.com/mynteye/depth
device_info.h
1 // Copyright 2018 Slightech Co., Ltd. All rights reserved.
2 //
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 #ifndef MYNTEYE_DEVICE_DEVICE_INFO_H_
15 #define MYNTEYE_DEVICE_DEVICE_INFO_H_
16 #pragma once
17 
18 #include <cstdint>
19 #include <string>
20 
21 #include "mynteyed/stubs/global.h"
22 
23 MYNTEYE_BEGIN_NAMESPACE
24 
28 struct MYNTEYE_API DeviceInfo {
32  std::int32_t index;
33 
37  std::string name;
38 
42  std::uint16_t type;
43 
47  std::uint16_t pid;
48 
52  std::uint16_t vid;
53 
57  std::uint16_t chip_id;
58 
62  std::string fw_version;
63 };
64 
65 MYNTEYE_API
66 std::ostream& operator<<(std::ostream& os, const DeviceInfo& info);
67 
68 MYNTEYE_END_NAMESPACE
69 
70 #endif // MYNTEYE_DEVICE_DEVICE_INFO_H_
std::uint16_t pid
The product id.
Definition: device_info.h:47
std::string name
The device name.
Definition: device_info.h:37
std::string fw_version
The firmware version.
Definition: device_info.h:62
Device information.
Definition: device_info.h:28
std::int32_t index
The device index.
Definition: device_info.h:32
std::uint16_t type
The device type.
Definition: device_info.h:42
std::uint16_t vid
The vendor id.
Definition: device_info.h:52
std::uint16_t chip_id
The chip id.
Definition: device_info.h:57