kstars
ApnSerial.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00012
00013 #if !defined(AFX_APNSERIAL_H__A27F1749_FA8F_40E8_A03F_4A28C8378DD1__INCLUDED_)
00014 #define AFX_APNSERIAL_H__A27F1749_FA8F_40E8_A03F_4A28C8378DD1__INCLUDED_
00015
00016 #if _MSC_VER > 1000
00017 #pragma once
00018 #endif // _MSC_VER > 1000
00019
00020 #include "Apogee.h"
00021
00022
00023 class CApnSerial
00024 {
00025 public:
00026
00027 CApnSerial();
00028 virtual ~CApnSerial();
00029
00030 virtual bool InitPort( unsigned long CamIdA,
00031 unsigned short CamIdB,
00032 unsigned short SerialId ) = 0;
00033
00034 virtual bool ClosePort() = 0;
00035
00036 virtual bool GetBaudRate( unsigned long *BaudRate ) = 0;
00037
00038 virtual bool SetBaudRate( unsigned long BaudRate ) = 0;
00039
00040 virtual bool GetFlowControl( Apn_SerialFlowControl *FlowControl ) = 0;
00041
00042 virtual bool SetFlowControl( Apn_SerialFlowControl FlowControl ) = 0;
00043
00044 virtual bool GetParity( Apn_SerialParity *Parity ) = 0;
00045
00046 virtual bool SetParity( Apn_SerialParity Parity ) = 0;
00047
00048 virtual bool Read( char *ReadBuffer,
00049 unsigned short *ReadCount ) = 0;
00050
00051 virtual bool Write( char *WriteBuffer,
00052 unsigned short WriteCount ) = 0;
00053
00054
00055 Apn_Interface m_CameraInterface;
00056 short m_SerialId;
00057
00058 };
00059
00060 #endif // !defined(AFX_APNSERIAL_H__A27F1749_FA8F_40E8_A03F_4A28C8378DD1__INCLUDED_)