blob: cd10d9b5a123415f84889f24881511e6fe981e5e (
plain)
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
|
// ApnSerial_USB.h: interface for the CApnSerial_USB class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_APNSERIAL_USB_H__D7A1A328_6505_438F_BCCE_FA3F3B5EECC2__INCLUDED_)
#define AFX_APNSERIAL_USB_H__D7A1A328_6505_438F_BCCE_FA3F3B5EECC2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ApnSerial.h"
class CApnSerial_USB : public CApnSerial
{
public:
CApnSerial_USB();
virtual ~CApnSerial_USB();
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( char *ReadBuffer,
unsigned short *ReadCount );
bool Write( char *WriteBuffer,
unsigned short WriteCount );
};
#endif // !defined(AFX_APNSERIAL_USB_H__D7A1A328_6505_438F_BCCE_FA3F3B5EECC2__INCLUDED_)
|