summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/indi/apogee/ApnSerial_USB.h
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/indi/apogee/ApnSerial_USB.h')
-rw-r--r--kstars/kstars/indi/apogee/ApnSerial_USB.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/kstars/kstars/indi/apogee/ApnSerial_USB.h b/kstars/kstars/indi/apogee/ApnSerial_USB.h
new file mode 100644
index 00000000..cd10d9b5
--- /dev/null
+++ b/kstars/kstars/indi/apogee/ApnSerial_USB.h
@@ -0,0 +1,43 @@
+// ApnSerial_USB.h: interface for the CApnSerial_USB class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_APNSERIAL_USB_H__D7A1A328_6505_438F_BCCE_FA3F3B5EECC2__INCLUDED_)
+#define AFX_APNSERIAL_USB_H__D7A1A328_6505_438F_BCCE_FA3F3B5EECC2__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "ApnSerial.h"
+
+class CApnSerial_USB : public CApnSerial
+{
+public:
+ CApnSerial_USB();
+ virtual ~CApnSerial_USB();
+
+ bool InitPort( unsigned long CamIdA,
+ unsigned short CamIdB,
+ unsigned short SerialId );
+
+ bool ClosePort();
+
+ bool GetBaudRate( unsigned long *BaudRate );
+ bool SetBaudRate( unsigned long BaudRate );
+
+ bool GetFlowControl( Apn_SerialFlowControl *FlowControl );
+ bool SetFlowControl( Apn_SerialFlowControl FlowControl );
+
+ bool GetParity( Apn_SerialParity *Parity );
+ bool SetParity( Apn_SerialParity Parity );
+
+ bool Read( char *ReadBuffer,
+ unsigned short *ReadCount );
+
+ bool Write( char *WriteBuffer,
+ unsigned short WriteCount );
+
+};
+
+#endif // !defined(AFX_APNSERIAL_USB_H__D7A1A328_6505_438F_BCCE_FA3F3B5EECC2__INCLUDED_)