00001 00011 #ifndef CCTALK_DRIVER_H 00012 #define CCTALK_DRIVER_H 00013 00014 #define TRUE (1) 00015 #define FALSE (0) 00016 00021 enum eCCTALK_DRIVER_CONSTANTS 00022 { 00023 eCCT_DRV_DEV_SIZE = 20 00024 }; 00025 00037 typedef struct 00038 { 00039 char acSerialTty[ eCCT_DRV_DEV_SIZE ]; 00040 int fdHandle; 00041 teCCTALK_SPEED eSpeed; 00042 unsigned long lUsageCounter; 00044 struct termios sOldTio; 00045 struct termios sNewTio; 00046 tsCCTALK_OPERATION *psTxCctOps; 00047 tsCCTALK_OPERATION *psRxCctOps; 00049 }tsCCT_COMM_HANDLER; 00050 00051 unsigned char cct_DrvInitialise( tsCCT_COMM_HANDLER *psCctComms, teCCTALK_SPEED eCctSpd ); 00052 void cct_DrvClose( tsCCT_COMM_HANDLER *psCctComms ); 00053 int cct_PerformCctalkOperation( tsCCT_COMM_HANDLER *psCctComms, tsCCTALK_OPERATION *psCctalkOp ); 00054 00055 #endif /* CCTALK_DRIVER_H */
1.3.6