forked from ChrisVeigl/BrainBay
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathob_com_writer.h
46 lines (31 loc) · 1.24 KB
/
ob_com_writer.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
/* -----------------------------------------------------------------------------
BrainBay Version 1.7, GPL 2003-2010, contact: [email protected]
MODULE: OB_COM_WRITER.H: declarations for the Com-Port Writer
Author: Chris Veigl
The Com-Port Writer Object can be used to write Bytes to an opened Com-Port.
This will be usually a port where a bidirectional EEG-device like the
MONOLITH-EEG is connected to. Using this Object, Command- and Data Bytes can be
sent to the Device, for example to adjust the baud- or sampling rate.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; See the
GNU General Public License for more details.
-----------------------------------------------------------------------------*/
#include "brainBay.h"
class COM_WRITEROBJ : public BASE_CL
{
public:
float input,input2;
unsigned char byte;
unsigned char command;
unsigned char data1,data2;
int en_trigger,cnt;
float trigger,trigger2;
COM_WRITEROBJ(int num);
void make_dialog(void);
void load(HANDLE hFile);
void save(HANDLE hFile);
void incoming_data(int port, float value);
void work(void);
~COM_WRITEROBJ();
};