Files
firestorm/Gameleap/code/mw4/Code/MW4/c232comm.h
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

28 lines
799 B
C++

#if !defined(__C232COMM_H__)
#define __C232COMM_H__
class C232Comm
{
private:
HANDLE m_hCom;
int m_nPort;
DCB m_dcb;
COMMTIMEOUTS m_commTimeOuts;
COMMCONFIG m_cc;
COMMPROP m_cp;
public:
C232Comm();
virtual ~C232Comm();
BOOL IsValid() const { return m_hCom != INVALID_HANDLE_VALUE; }
BOOL Open(int nPort, DWORD dwBaudRate = CBR_9600, BYTE dwParity = NOPARITY, BYTE bByteSize = 8, BYTE dwStopBits = ONESTOPBIT);
void Close();
int rxCom(void* pData, int nLen);
BOOL rxComLoop(void* pData, int nLen);
int txCom(const void* pData, int nLen);
BOOL txComLoop(const void* pData, int nLen);
void locProcessCommError();
int CommunicationConfig(HWND hWndParent);
};
#endif // !defined(__C232COMM_H__)