Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.astro.louisville.edu/software/sbig/archive/xmccd-4.1/xmccd-4.1e/libapogee/src/ApnSerial.i
Дата изменения: Sun Feb 11 05:37:48 2007
Дата индексирования: Thu Feb 27 22:37:52 2014
Кодировка:

Поисковые слова: clouds
// ApnSerial.h: interface for the CApnSerial class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_APNSERIAL_H__A27F1749_FA8F_40E8_A03F_4A28C8378DD1__INCLUDED_)
#define AFX_APNSERIAL_H__A27F1749_FA8F_40E8_A03F_4A28C8378DD1__INCLUDED_


#include "Apogee.h"


class CApnSerial
{
public:

CApnSerial();
~CApnSerial();

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);

// Variables
Apn_Interface m_CameraInterface;
int m_SerialId;
short m_BytesRead;
long m_hSession;
int m_SerialSocket;
char m_HostAddr[80];
unsigned short m_PortNum;
char m_SerialBuffer[4096];


};

#endif // !defined(AFX_APNSERIAL_H__A27F1749_FA8F_40E8_A03F_4A28C8378DD1__INCLUDED_)