EPICS Motor Module motor-R6-8-RC1_1-4
motorApp/OmsAsynSrc/omsMAXnet.h
00001 /*
00002 FILENAME...     omsMAXnet.h
00003 USAGE...        Pro-Dex OMS MAXnet asyn motor controller support
00004 
00005 Version:        $Revision: 1.3 $
00006 Modified By:    $Author: ernesto $
00007 Last Modified:  $Date: 2013/07/09 15:27:30 $
00008 HeadURL:        $URL$
00009 */
00010 
00011 /*
00012  *  Created on: 10/2010
00013  *      Author: eden
00014  */
00015 
00016 #ifndef OMSMAXNET_H_
00017 #define OMSMAXNET_H_
00018 
00019 #include "omsBaseController.h"
00020 
00021 class omsMAXnet : public omsBaseController {
00022 public:
00023     omsMAXnet(const char* , int , const char*, const char*, int , int );
00024     static void asynCallback(void*, asynUser*, char *, size_t, int);
00025     int portConnected;
00026     int notificationCounter;
00027     epicsMutex* notificationMutex;
00028     epicsEventWaitStatus waitInterruptible(double);
00029 //    asynStatus sendReceive(const char *, char *, unsigned int);
00030     asynStatus sendReceive(const char *, char *, unsigned int , size_t *);
00031     asynStatus sendOnly(const char *);
00032 
00033 private:
00034     int isNotification (char *);
00035     asynUser* pasynUserSerial;
00036     asynUser* pasynUserSyncIOSerial;
00037     asynOctet *pasynOctetSerial;
00038     void* octetPvtSerial;
00039     char* serialPortName;
00040     double timeout;
00041 };
00042 
00043 #endif /* OMSMAXNET_H_ */
 All Classes Functions Variables