Monado OpenXR Runtime
Loading...
Searching...
No Matches
mt9v034.h
Go to the documentation of this file.
1// Copyright 2014-2020, Philipp Zabel
2// Copyright 2017, TheOnlyJoey
3// Copyright 2025, Jan Schmidt
4// Copyright 2025-2026, Beyley Cardellio
5// SPDX-License-Identifier: BSL-1.0
6/*!
7 * @file
8 * @brief Implementation of mt9v034 sensor initialization
9 * @author Philipp Zabel <philipp.zabel@gmail.com>
10 * @author TheOnlyJoey <joeyferweda@gmail.com>
11 * @author Jan Schmidt <jan@centricular.com>
12 * @author Beyley Cardellio <ep1cm1n10n123@gmail.com>
13 * @ingroup drv_rift_sensor
14 */
15
16#pragma once
17
18#include "xrt/xrt_defines.h"
19
20#include <libusb.h>
21
22
23/*!
24 * Sets up the MT9V034 sensor for synchronized exposure, with minimal gain
25 * and raised black level calibration.
26 *
27 * @param[in] devh libusb device handle
28 * @return 0 on success, negative error code on failure
29 */
30int
31mt9v034_setup(libusb_device_handle *devh);
32
33/*!
34 * Enables or disables the MT9V034's sync output
35 *
36 * @param[in] devh libusb device handle
37 * @param[in] enabled Whether to enable or disable the sync output
38 * @return 0 on success, negative error code on failure
39 */
40int
41mt9v034_set_sync(libusb_device_handle *devh, bool enabled);
int mt9v034_set_sync(libusb_device_handle *devh, bool enabled)
Enables or disables the MT9V034's sync output.
Definition mt9v034.c:157
int mt9v034_setup(libusb_device_handle *devh)
Sets up the MT9V034 sensor for synchronized exposure, with minimal gain and raised black level calibr...
Definition mt9v034.c:139
Common defines and enums for XRT.