libvcomm  1.0
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Macros | Functions
vcomm.h File Reference
#include <stdint.h>
#include "hidapi.h"
#include "proto.h"
#include "structs.h"
#include "vactions.h"
Include dependency graph for vcomm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VCOMMAPI
 
#define VCOMMCALL
 
#define VENDOR_ID   0x1fc9
 
#define PRODUCT_ID   0x0004
 
#define SUCCESS   0
 
#define ERR_DEV_NOT_FOUND   -1
 
#define ERR_OPEN_DEV   -2
 
#define ERR_ARGUMENT_ERROR   -3
 

Functions

VCOMMAPI int VCOMMCALL Vopen (hid_device **vhandle, char *serial)
 Open an IRvoodoo connection. More...
 
VCOMMAPI int VCOMMCALL Vclose (hid_device **vhandle)
 Close an IRvoodoo connection. More...
 
VCOMMAPI int VCOMMCALL Vcomm (hid_device **vhandle, request_t *req, response_t *resp)
 Send and receive data from IRvoodoo. More...
 
VCOMMAPI unsigned int VCOMMCALL Vtest (hid_device **vhandle)
 Test an IRvoodoo connection. More...
 
VCOMMAPI struct
hid_device_info *VCOMMCALL 
Vlist (void)
 Get list of connected IRvoodoo devices. More...
 
VCOMMAPI void VCOMMCALL Vfree_list (struct hid_device_info *vlist)
 

Macro Definition Documentation

#define ERR_ARGUMENT_ERROR   -3

Invalid input argument error

Examples:
blaster.c.

Definition at line 143 of file vcomm.h.

#define ERR_DEV_NOT_FOUND   -1

Device not found error (check connection)

Examples:
blaster.c.

Definition at line 141 of file vcomm.h.

#define ERR_OPEN_DEV   -2

Cannot open device (check usb permissions)

Examples:
blaster.c.

Definition at line 142 of file vcomm.h.

#define PRODUCT_ID   0x0004

IRvoodoo USB PID

Definition at line 61 of file vcomm.h.

#define SUCCESS   0

Success return code

Definition at line 140 of file vcomm.h.

#define VCOMMAPI

API export macro

Definition at line 55 of file vcomm.h.

#define VCOMMCALL

API call macro

Definition at line 56 of file vcomm.h.

#define VENDOR_ID   0x1fc9

IRvoodoo USB VID

Definition at line 60 of file vcomm.h.

Function Documentation

VCOMMAPI void VCOMMCALL Vfree_list ( struct hid_device_info vlist)

This function frees a linked list created by Vlist().

Parameters
vlistPointer to a list of struct_device returned from Vlist().

Definition at line 22 of file vcomm.c.

Here is the call graph for this function: