macos/usb_sensor_enumerator.cpp
Go to the documentation of this file.
1 /*
2  * BSD 3-Clause License
3  *
4  * Copyright (c) 2019, Analog Devices, Inc.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are met:
9  *
10  * 1. Redistributions of source code must retain the above copyright notice, this
11  * list of conditions and the following disclaimer.
12  *
13  * 2. Redistributions in binary form must reproduce the above copyright notice,
14  * this list of conditions and the following disclaimer in the documentation
15  * and/or other materials provided with the distribution.
16  *
17  * 3. Neither the name of the copyright holder nor the names of its
18  * contributors may be used to endorse or promote products derived from
19  * this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
33 
34 using namespace aditof;
35 
37  // TO DO: implement this when enabling macos support
38 
39  return Status::OK;
40 }
41 
43  std::vector<std::shared_ptr<DepthSensorInterface>> & /*depthSensors*/) {
44 
45  // TO DO: implement this when enabling macos support
46 
47  return Status::OK;
48 }
49 
52  uBootVersion = m_uBootVersion;
53  return aditof::Status::OK;
54 }
55 
58  kernelVersion = m_kernelVersion;
59  return aditof::Status::OK;
60 }
61 
63 UsbSensorEnumerator::getRfsVersion(std::string &rfsVersion) const {
64  rfsVersion = m_rfsVersion;
65  return aditof::Status::OK;
66 }
67 
69 UsbSensorEnumerator::getSdkVersion(std::string &sdkVersion) const {
70  sdkVersion = m_sdkVersion;
71  return aditof::Status::OK;
72 }
UsbSensorEnumerator::getUbootVersion
virtual aditof::Status getUbootVersion(std::string &uBootVersion) const override
Get the U-Boot version that is installed on the embedded system that the camera is attached to.
Definition: linux/usb_sensor_enumerator.cpp:214
string
GLsizei const GLchar *const * string
Definition: glcorearb.h:3083
usb_sensor_enumerator.h
aditof
Namespace aditof.
Definition: adsd_errs.h:40
UsbSensorEnumerator::getDepthSensors
virtual aditof::Status getDepthSensors(std::vector< std::shared_ptr< aditof::DepthSensorInterface >> &depthSensors) override
Definition: linux/usb_sensor_enumerator.cpp:199
aditof::Status
Status
Status of any operation that the TOF sdk performs.
Definition: status_definitions.h:48
UsbSensorEnumerator::searchSensors
virtual aditof::Status searchSensors() override
Do a search for the available sensors.
Definition: linux/usb_sensor_enumerator.cpp:56
aditof::Status::OK
@ OK
Success.
UsbSensorEnumerator::getKernelVersion
virtual aditof::Status getKernelVersion(std::string &kernelVersion) const override
Get the kernel version that is installed on the embedded system that the camera is attached to.
Definition: linux/usb_sensor_enumerator.cpp:220


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:01