#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <libusb-1.0/libusb.h>
#include "freenect_internal.h"
Go to the source code of this file.
Functions | |
int | fnusb_control (fnusb_dev *dev, uint8_t bmRequestType, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, uint8_t *data, uint16_t wLength) |
int | fnusb_init (fnusb_ctx *ctx, freenect_usb_context *usb_ctx) |
int | fnusb_open_subdevices (freenect_device *dev, int index) |
Open a camera/motor device using an user given index. | |
int | fnusb_process_events (fnusb_ctx *ctx) |
int | fnusb_shutdown (fnusb_ctx *ctx) |
Deinitialize libusb. | |
int | fnusb_start_iso (fnusb_dev *dev, fnusb_isoc_stream *strm, fnusb_iso_cb cb, int ep, int xfers, int pkts, int len) |
int | fnusb_stop_iso (fnusb_dev *dev, fnusb_isoc_stream *strm) |
static void | iso_callback (struct libusb_transfer *xfer) |
int fnusb_control | ( | fnusb_dev * | dev, | |
uint8_t | bmRequestType, | |||
uint8_t | bRequest, | |||
uint16_t | wValue, | |||
uint16_t | wIndex, | |||
uint8_t * | data, | |||
uint16_t | wLength | |||
) |
Definition at line 222 of file usb_libusb10.c.
int fnusb_init | ( | fnusb_ctx * | ctx, | |
freenect_usb_context * | usb_ctx | |||
) |
Definition at line 34 of file usb_libusb10.c.
int fnusb_open_subdevices | ( | freenect_device * | dev, | |
int | index | |||
) |
Open a camera/motor device using an user given index.
Definition at line 74 of file usb_libusb10.c.
int fnusb_process_events | ( | fnusb_ctx * | ctx | ) |
Definition at line 67 of file usb_libusb10.c.
int fnusb_shutdown | ( | fnusb_ctx * | ctx | ) |
Deinitialize libusb.
Definition at line 56 of file usb_libusb10.c.
int fnusb_start_iso | ( | fnusb_dev * | dev, | |
fnusb_isoc_stream * | strm, | |||
fnusb_iso_cb | cb, | |||
int | ep, | |||
int | xfers, | |||
int | pkts, | |||
int | len | |||
) |
Definition at line 165 of file usb_libusb10.c.
int fnusb_stop_iso | ( | fnusb_dev * | dev, | |
fnusb_isoc_stream * | strm | |||
) |
Definition at line 201 of file usb_libusb10.c.
static void iso_callback | ( | struct libusb_transfer * | xfer | ) | [static] |
Definition at line 139 of file usb_libusb10.c.