moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kstars / kstars / indi / apogee / ApnSerial.h
blobb4f5f54f7ad9459433d01692efb876e7262df896
1 // ApnSerial.h: interface for the CApnSerial class.
2 //
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_APNSERIAL_H__A27F1749_FA8F_40E8_A03F_4A28C8378DD1__INCLUDED_)
6 #define AFX_APNSERIAL_H__A27F1749_FA8F_40E8_A03F_4A28C8378DD1__INCLUDED_
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
12 #include "Apogee.h"
15 class CApnSerial
17 public:
19 CApnSerial();
20 virtual ~CApnSerial();
22 virtual bool InitPort( unsigned long CamIdA,
23 unsigned short CamIdB,
24 unsigned short SerialId ) = 0;
26 virtual bool ClosePort() = 0;
28 virtual bool GetBaudRate( unsigned long *BaudRate ) = 0;
30 virtual bool SetBaudRate( unsigned long BaudRate ) = 0;
32 virtual bool GetFlowControl( Apn_SerialFlowControl *FlowControl ) = 0;
34 virtual bool SetFlowControl( Apn_SerialFlowControl FlowControl ) = 0;
36 virtual bool GetParity( Apn_SerialParity *Parity ) = 0;
38 virtual bool SetParity( Apn_SerialParity Parity ) = 0;
40 virtual bool Read( char *ReadBuffer,
41 unsigned short *ReadCount ) = 0;
43 virtual bool Write( char *WriteBuffer,
44 unsigned short WriteCount ) = 0;
46 // Variables
47 Apn_Interface m_CameraInterface;
48 short m_SerialId;
52 #endif // !defined(AFX_APNSERIAL_H__A27F1749_FA8F_40E8_A03F_4A28C8378DD1__INCLUDED_)