Main Page
Namespaces
Classes
Files
File List
File Members
src
flags.h
Go to the documentation of this file.
1
/*
2
* This file is part of the OpenKinect Project. http://www.openkinect.org
3
*
4
* Copyright (c) 2010-2011 individual OpenKinect contributors. See the CONTRIB
5
* file for details.
6
*
7
* This code is licensed to you under the terms of the Apache License, version
8
* 2.0, or, at your option, the terms of the GNU General Public License,
9
* version 2.0. See the APACHE20 and GPL2 files for the text of the licenses,
10
* or the following URLs:
11
* http://www.apache.org/licenses/LICENSE-2.0
12
* http://www.gnu.org/licenses/gpl-2.0.txt
13
*
14
* If you redistribute this file in source form, modified or unmodified, you
15
* may:
16
* 1) Leave this header intact and distribute it under the same terms,
17
* accompanying it with the APACHE20 and GPL20 files, or
18
* 2) Delete the Apache 2.0 clause and accompany it with the GPL2 file, or
19
* 3) Delete the GPL v2 clause and accompany it with the APACHE20 file
20
* In all cases you must keep the copyright notice intact and include a copy
21
* of the CONTRIB file.
22
*
23
* Binary distributions must follow the binary distribution requirements of
24
* either License.
25
*/
26
27
#pragma once
28
29
#include "
libfreenect.h
"
30
31
32
int
send_cmd
(
freenect_device
*dev,
uint16_t
cmd,
void
*cmdbuf,
unsigned
int
cmd_len,
void
*replybuf,
int
reply_len);
33
34
// returns UINT16_MAX on error
35
uint16_t
read_register
(
freenect_device
*dev,
uint16_t
reg);
36
int
write_register
(
freenect_device
*dev,
uint16_t
reg,
uint16_t
data);
37
38
// returns UINT16_MAX on error
39
uint16_t
read_cmos_register
(
freenect_device
*dev,
uint16_t
reg);
40
int
write_cmos_register
(
freenect_device
*dev,
uint16_t
reg,
uint16_t
value);
write_register
int write_register(freenect_device *dev, uint16_t reg, uint16_t data)
Definition:
flags.c:167
read_register
uint16_t read_register(freenect_device *dev, uint16_t reg)
Definition:
flags.c:147
uint16_t
unsigned short uint16_t
Definition:
OniPlatformWin32.h:66
write_cmos_register
int write_cmos_register(freenect_device *dev, uint16_t reg, uint16_t value)
Definition:
flags.c:211
libfreenect.h
send_cmd
int send_cmd(freenect_device *dev, uint16_t cmd, void *cmdbuf, unsigned int cmd_len, void *replybuf, int reply_len)
Definition:
flags.c:77
read_cmos_register
uint16_t read_cmos_register(freenect_device *dev, uint16_t reg)
Definition:
flags.c:190
_freenect_device
Definition:
freenect_internal.h:213
libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Mon Jun 10 2019 13:46:42