1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// ApnSerial_NET.h: interface for the CApnSerial_NET class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_APNSERIAL_NET_H__F31A372D_2B82_4998_B74C_FFAD8E3EEE86__INCLUDED_)
#define AFX_APNSERIAL_NET_H__F31A372D_2B82_4998_B74C_FFAD8E3EEE86__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ApnSerial.h"
class CApnSerial_NET : public CApnSerial
{
public:
CApnSerial_NET();
virtual ~CApnSerial_NET();
bool InitPort( unsigned long CamIdA,
unsigned short CamIdB,
unsigned short SerialId );
bool ClosePort();
bool GetBaudRate( unsigned long *BaudRate );
bool SetBaudRate( unsigned long BaudRate );
bool GetFlowControl( Apn_SerialFlowControl *FlowControl );
bool SetFlowControl( Apn_SerialFlowControl FlowControl );
bool GetParity( Apn_SerialParity *Parity );
bool SetParity( Apn_SerialParity Parity );
bool Read( int SerialSock, char *ReadBuffer,
unsigned short *ReadCount );
bool Write( int SerialSock, char *WriteBuffer,
unsigned short WriteCount );
char *ReadBuffer(void);
};
#endif // !defined(AFX_APNSERIAL_NET_H__F31A372D_2B82_4998_B74C_FFAD8E3EEE86__INCLUDED_)
|