Go to the documentation of this file.00001 #ifndef __CPHIDGETGENERIC
00002 #define __CPHIDGETGENERIC
00003 #include "cphidget.h"
00004
00005 DPHANDLE(Generic)
00006 CHDRSTANDARD(Generic)
00007
00008 CHDRGET(Generic,INPacketLength,int *length)
00009 CHDRGET(Generic,OUTPacketLength,int *length)
00010
00011 CHDRGET(Generic,LastPacket,const unsigned char **packet, int *length)
00012 CHDRSET(Generic,Packet,unsigned char *packet, int length)
00013 CHDREVENT(Generic,Packet,const unsigned char *packet, int length)
00014
00015 #ifndef EXTERNALPROTO
00016 struct _CPhidgetGeneric {
00017 CPhidget phid;
00018
00019 int (CCONV *fptrPacket)(CPhidgetGenericHandle, void *, const unsigned char *, int);
00020 void *fptrPacketptr;
00021
00022 unsigned char lastPacket[MAX_IN_PACKET_SIZE];
00023
00024 unsigned char buffer[MAX_OUT_PACKET_SIZE];
00025
00026 int in, out;
00027
00028 unsigned char outputPacket[MAX_OUT_PACKET_SIZE];
00029 unsigned int outputPacketLen;
00030 } typedef CPhidgetGenericInfo;
00031 #endif
00032
00035 #endif