1 // ApnSerial.h: interface for the CApnSerial class.
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_APNSERIAL_H__A27F1749_FA8F_40E8_A03F_4A28C8378DD1__INCLUDED_)
6 #define AFX_APNSERIAL_H__A27F1749_FA8F_40E8_A03F_4A28C8378DD1__INCLUDED_
10 #endif // _MSC_VER > 1000
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;
47 Apn_Interface m_CameraInterface
;
52 #endif // !defined(AFX_APNSERIAL_H__A27F1749_FA8F_40E8_A03F_4A28C8378DD1__INCLUDED_)