-
Notifications
You must be signed in to change notification settings - Fork 0
/
PublicMain.h
62 lines (40 loc) · 1.26 KB
/
PublicMain.h
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#pragma once
#include "dllmain.h"
// sized for the current string display panel
#define THREAD_MAX 15
extern "C"
{
LIBRARY_BYTESTREAMRECORDER_API
void PortRecorder_Initialize(void);
LIBRARY_BYTESTREAMRECORDER_API
void PortRecorder_DeInitialize(void);
LIBRARY_BYTESTREAMRECORDER_API
DWORD PortRecorder_GetTotalBytesRecorded(int iPortRecorderObjectID);
// This method used for standard COM port names
// (i.e., "COM1:", etc.)
// Returns ID of Port playback object.
// Returns -1 on error.
LIBRARY_BYTESTREAMRECORDER_API
int PortRecorder_AddSerialPort(int iComPortNumber,
int iBaudRate,
int iDataBits,
int iParity,
int iStopBits,
int iFlowControl);
// This method used for non-standard COM port names
// (i.e., "CAN1:", etc.)
// Returns ID of Port playback object.
// Returns -1 on error.
LIBRARY_BYTESTREAMRECORDER_API
int PortRecorder_AddNonStandardSerialPort(int iComPortNumber,
const wchar_t* wszComPort,
int iBaudRate,
int iDataBits,
int iParity,
int iStopBits,
int iFlowControl);
LIBRARY_BYTESTREAMRECORDER_API
int PortRecorder_StartRecording(void);
LIBRARY_BYTESTREAMRECORDER_API
int PortRecorder_StopRecording(void);
};