Classes | Functions
flags.c File Reference
#include <string.h>
#include "freenect_internal.h"
#include "flags.h"
Include dependency graph for flags.c:

Go to the source code of this file.

Classes

struct  cam_hdr
 

Functions

int freenect_set_flag (freenect_device *dev, freenect_flag flag, freenect_flag_value value)
 
FN_INTERNAL uint16_t read_cmos_register (freenect_device *dev, uint16_t reg)
 
FN_INTERNAL uint16_t read_register (freenect_device *dev, uint16_t reg)
 
FN_INTERNAL int register_for_flag (int flag)
 
FN_INTERNAL int send_cmd (freenect_device *dev, uint16_t cmd, void *cmdbuf, unsigned int cmd_len, void *replybuf, int reply_len)
 
FN_INTERNAL int write_cmos_register (freenect_device *dev, uint16_t reg, uint16_t value)
 
FN_INTERNAL int write_register (freenect_device *dev, uint16_t reg, uint16_t data)
 

Function Documentation

int freenect_set_flag ( freenect_device dev,
freenect_flag  flag,
freenect_flag_value  value 
)

Enables or disables the specified flag.

Parameters
flagFeature to set
valueFREENECT_OFF or FREENECT_ON
Returns
0 on success, < 0 if error

Definition at line 48 of file flags.c.

FN_INTERNAL uint16_t read_cmos_register ( freenect_device dev,
uint16_t  reg 
)

Definition at line 190 of file flags.c.

FN_INTERNAL uint16_t read_register ( freenect_device dev,
uint16_t  reg 
)

Definition at line 147 of file flags.c.

FN_INTERNAL int register_for_flag ( int  flag)

Definition at line 35 of file flags.c.

FN_INTERNAL int send_cmd ( freenect_device dev,
uint16_t  cmd,
void *  cmdbuf,
unsigned int  cmd_len,
void *  replybuf,
int  reply_len 
)

Definition at line 77 of file flags.c.

FN_INTERNAL int write_cmos_register ( freenect_device dev,
uint16_t  reg,
uint16_t  value 
)

Definition at line 211 of file flags.c.

FN_INTERNAL int write_register ( freenect_device dev,
uint16_t  reg,
uint16_t  data 
)

Definition at line 167 of file flags.c.



libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Mon Jun 10 2019 13:46:43