Changeset 1234 for trunk/csctapi/io_serial.h
- Timestamp:
- 01/15/10 10:52:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/io_serial.h
r1224 r1234 28 28 #include "defines.h" 29 29 30 #define IO_Serial_DTR_Set(io) IO_Serial_DTR_RTS(io,1, 1)31 #define IO_Serial_DTR_Clr(io) IO_Serial_DTR_RTS(io,1, 0)32 #define IO_Serial_RTS_Set( io) IO_Serial_DTR_RTS(io,0, 1)33 #define IO_Serial_RTS_Clr( io) IO_Serial_DTR_RTS(io,0, 0)30 //#define IO_Serial_DTR_Set() IO_Serial_DTR_RTS(1, 1) 31 //#define IO_Serial_DTR_Clr() IO_Serial_DTR_RTS(1, 0) 32 #define IO_Serial_RTS_Set() IO_Serial_DTR_RTS(0, 1) 33 #define IO_Serial_RTS_Clr() IO_Serial_DTR_RTS(0, 0) 34 34 /* 35 35 * Exported constants definition … … 55 55 typedef struct 56 56 { 57 int fd; /* Handle of the serial device */58 57 /* Settings that can be modified */ 59 58 unsigned long input_bitrate; … … 68 67 BYTE PnP_id[IO_SERIAL_PNPID_SIZE]; /* PnP Id of the serial device */ 69 68 unsigned PnP_id_size; /* Length of PnP Id */ 70 int mhz; /* mhz specified in config = actual reader clock speed */71 int cardmhz; /* mhz specified in config = standard (non overclocked) clock speed of card*/72 69 } 73 70 IO_Serial; … … 92 89 extern bool IO_Serial_SetProperties (IO_Serial * io); 93 90 extern bool IO_Serial_GetProperties (IO_Serial * io); 94 extern bool IO_Serial_DTR_RTS( IO_Serial * io,int, int);91 extern bool IO_Serial_DTR_RTS(int, int); 95 92 #if defined(TUXBOX) && defined(PPC) 96 93 extern void IO_Serial_Ioctl_Lock(int); … … 104 101 105 102 /* Serial port atributes */ 106 extern unsigned IO_Serial_GetCom (IO_Serial * io);107 103 extern void IO_Serial_GetPnPId (IO_Serial * io, BYTE * pnp_id, unsigned *length); 108 104
Note:
See TracChangeset
for help on using the changeset viewer.