12#ifndef __PS2CAM_RPC_H__
13#define __PS2CAM_RPC_H__
16#define PS2CAM_RPC_GETIRXVERSION 40
18#define PS2CAM_RPC_INITIALIZE 41
20#define PS2CAM_RPC_GETDEVCOUNT 42
21#define PS2CAM_RPC_OPENDEVICE 43
22#define PS2CAM_RPC_CLOSEDEVICE 44
24#define PS2CAM_RPC_GETDEVSTATUS 45
26#define PS2CAM_RPC_GETDEVINFO 46
28#define PS2CAM_RPC_SETDEVBANDWIDTH 47
30#define PS2CAM_RPC_READPACKET 48
32#define PS2CAM_RPC_SETLEDMODE 49
34#define PS2CAM_RPC_SETDEVCONFIG 50
37#define PS2CAM_LED_MODE_OFF 0
38#define PS2CAM_LED_MODE_ON 1
43#define CAM_STATUS_NOTCONNECTED 0
45#define CAM_STATUS_CONNECTED 1
47#define CAM_STATUS_CONNECTEDREADY 2
50#define CAM_CONFIG_MASK_DIMENSION 0x00000001
51#define CAM_CONFIG_MASK_OFFSET 0x00000002
52#define CAM_CONFIG_MASK_DIVIDER 0x00000004
53#define CAM_CONFIG_MASK_FRAMERATE 0x00000008
57#define CAM_ERROR_NONE (00)
58#define CAM_ERROR_NOTINIT -(20)
59#define CAM_ERROR_INVALIDDEVICE -(21)
61#define CAM_ERROR_COMMUNKNOWN -(22)
63#define CAM_ERROR_DEVNOTREADY -(23)
65#define CAM_ERROR_NODEVICE -(24)
67#define CAM_ERROR_BADRANGE -(25)
69#define CAM_ERROR_UNKNOWN -(26)
71#define CAM_ERROR_MAXHANDLE -(27)
73#define CAM_ERROR_BADHANDLE -(28)
75#define CAM_ERROR_DISCONNECTED -(29)
113 unsigned char vendor_name[32];
115 unsigned char product_name[32];
117 unsigned char model[16];
161int PS2CamExtractFrame(
int handle,
char *buffer,
int bufsize);
unsigned short product_id
int PS2CamReadPacket(int handle)
int PS2CamGetDeviceCount(void)
int PS2CamSetLEDMode(int handle, int mode)
int PS2CamCloseDevice(int handle)
int PS2CamSetDeviceBandwidth(int handle, char bandwidth)
int PS2CamGetIRXVersion(void)
int PS2CamOpenDevice(int device_index)
int PS2CamGetDeviceStatus(int handle)