QlightRead package | ESS final project 1.22-beta

/home/ron/Desktop/Frontend/src/tools.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <QtGui>
#include <iostream>
#include <libusb-1.0/libusb.h>
Include dependency graph for tools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define OUT   libusb_close(devh); libusb_exit(NULL);
#define DATAOUTEP   4
#define DATAINEP   (0x80 | 3)
#define DATAINSIZE   16
#define DATAOUTSIZE   16
#define VID   0x03eb
#define PID   0x0666

Functions

int printdev (libusb_device *dev)
int find_estick_device (struct libusb_device_handle **pdevh)
 find_estick_device() wrapper for libusb's libusb_open_device_with_vid_pid()

Detailed Description

QlightRead programm

----------------------------------------------------------------------

Description: This File contains the the classes to respective sourcefile

----------------------------------------------------------------------

LICENSE: Copyright (C) 2011 by Ron Ablinger trilog_studios@nerdshack.com

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

----------------------------------------------------------------------

Author:
Ron Ablinger <trilog_studios@nerdshack.com>
Date:
2011/01/17
Version:
Version:
1.22-beta
Todo:
consult sourcefile

Last Modified: 2010/01/17

Author:
Trilog Studios<Ron Ablinger>

Definition in file tools.h.


Define Documentation

#define DATAINEP   (0x80 | 3)

Definition at line 55 of file tools.h.

#define DATAINSIZE   16

Definition at line 56 of file tools.h.

#define DATAOUTEP   4

Definition at line 54 of file tools.h.

#define DATAOUTSIZE   16

Definition at line 57 of file tools.h.

#define OUT   libusb_close(devh); libusb_exit(NULL);

Definition at line 53 of file tools.h.

#define PID   0x0666

Definition at line 59 of file tools.h.

#define VID   0x03eb

Definition at line 58 of file tools.h.


Function Documentation

int find_estick_device ( struct libusb_device_handle **  pdevh)

find_estick_device() wrapper for libusb's libusb_open_device_with_vid_pid()

Parameters:
pdevh- struct libusb_device_handle **
Returns:
int
Return values:
Returns-1 on error, 0 else

Definition at line 66 of file tools.cpp.

int printdev ( libusb_device *  dev)
 All Classes Files Functions Variables Defines