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