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