Changeset 1239 for branches/smartreader/csctapi/io_serial.h
- Timestamp:
- 01/15/10 19:56:48 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/smartreader/csctapi/io_serial.h
r1225 r1239 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 … … 37 37 38 38 /* Type of parity of the serial device */ 39 #define IO_SERIAL_PARITY_ODD 140 #define IO_SERIAL_PARITY_EVEN 241 #define IO_SERIAL_PARITY_NONE 339 #define PARITY_ODD 1 40 #define PARITY_EVEN 2 41 #define PARITY_NONE 3 42 42 43 43 /* Values for the modem lines */ … … 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; … … 65 64 int rts; 66 65 /* end settings that can be modified */ 67 int reader_type;68 66 BYTE PnP_id[IO_SERIAL_PNPID_SIZE]; /* PnP Id of the serial device */ 69 67 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 68 } 73 69 IO_Serial; … … 90 86 91 87 /* Transmission properties */ 92 extern bool IO_Serial_SetProperties (IO_Serial * io);93 extern bool IO_Serial_GetProperties (IO_Serial * io);94 extern bool IO_Serial_DTR_RTS( IO_Serial * io,int, int);88 extern bool IO_Serial_SetPropertiesOld (IO_Serial * io); 89 extern bool IO_Serial_GetPropertiesOld (IO_Serial * io); 90 extern bool IO_Serial_DTR_RTS(int, int); 95 91 #if defined(TUXBOX) && defined(PPC) 96 92 extern void IO_Serial_Ioctl_Lock(int); … … 104 100 105 101 /* Serial port atributes */ 106 extern unsigned IO_Serial_GetCom (IO_Serial * io);107 102 extern void IO_Serial_GetPnPId (IO_Serial * io, BYTE * pnp_id, unsigned *length); 108 103
Note:
See TracChangeset
for help on using the changeset viewer.