CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/cameras_gimbals/xacti-config/CX-GBXXXCtrl.h
Views: 1799
1
// =============================================================================
2
/**
3
* @file CX-GBXXXCtrl.h
4
* @brief CX-GBXXX用コントロールクラス ヘッダ
5
* @copyright (c) 2022 Xacti Corporation
6
*/
7
// =============================================================================
8
9
#pragma once
10
11
#include <cstdint>
12
13
struct uvc_context;
14
typedef struct uvc_context uvc_context_t;
15
struct uvc_device;
16
typedef struct uvc_device uvc_device_t;
17
struct uvc_device_handle;
18
typedef struct uvc_device_handle uvc_device_handle_t;
19
struct uvc_frame;
20
typedef struct uvc_frame uvc_frame_t;
21
22
/*! @brief CCX_GBXXX用コントロールクラス */
23
class CX_GBXXXCtrl
24
{
25
public:
26
CX_GBXXXCtrl();
27
virtual ~CX_GBXXXCtrl();
28
bool Open(const char *serial);
29
void Close();
30
31
//! カメラコマンド
32
bool SetCameraCtrl(uint8_t unit_id, uint8_t cotrol_id, void *data, int length);
33
bool GetCameraCtrl(uint8_t unit_id, uint8_t cotrol_id, void *data, int length);
34
35
private:
36
37
uvc_context_t *m_ctx;
38
uvc_device_t *m_dev;
39
uvc_device_handle_t *m_devh;
40
};
41
42