TactileVestProject
V1.0
Tactile API documentation
Main Page
Classes
Files
File List
All
Classes
Functions
TactileAPI
include
Serial_Windows.h
1
#ifdef WIN32
2
#define WINDOWS
3
#elif WIN64
4
#define WINDOWS
5
#endif
6
#ifdef WINDOWS
7
#ifndef _SERIAL_Windows_H_
8
#define _SERIAL_Windows_H_
9
#include <windows.h>
10
#include <stdio.h>
11
#include "Serial.h"
12
#define FC_DTRDSR 0x01
13
#define FC_RTSCTS 0x02
14
#define FC_XONXOFF 0x04
15
#define ASCII_BEL 0x07
16
#define ASCII_BS 0x08
17
#define ASCII_LF 0x0A
18
#define ASCII_CR 0x0D
19
#define ASCII_XON 0x11
20
#define ASCII_XOFF 0x13
21
22
class
Serial_Windows :
public
Serial
23
{
24
25
public
:
26
Serial_Windows();
27
~Serial_Windows();
28
29
bool
Open
(TCHAR *);
30
bool
Close
(
void
);
31
32
int
ReadData(
void
*,
int
);
33
int
SendData
(
char
*);
34
35
protected
:
36
HANDLE deviceHandle;
37
TCHAR* comPort;
38
OVERLAPPED m_OverlappedRead, m_OverlappedWrite;
39
40
};
41
42
43
#endif
44
#endif
Serial::Close
virtual bool Close(void)
Serial::SendData
virtual int SendData(char *)
Serial::Open
virtual bool Open(char *)
Serial
Definition:
Serial.h:35
Generated on Thu May 8 2014 12:53:13 for TactileVestProject by
1.8.7