rllib  1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
rl3964r.h
Go to the documentation of this file.
1 /***************************************************************************
2  rl3964r.h - description
3  -------------------
4  begin : Wed Jan 14 2004
5  copyright : (C) 2004 by R. Lehrig
6  email : lehrig@t-online.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
13  * published by the Free Software Foundation *
14  * *
15  ***************************************************************************/
16 #ifndef _RL_3964R_H_
17 #define _RL_3964R_H_
18 
19 #include "rldefine.h"
20 #include "rlserial.h"
21 #include "rlthread.h"
22 
27 class rl3964R
28 {
29  public:
31  {
34  };
35 
36  rl3964R(int _priority = highPriority);
37  virtual ~rl3964R();
38  int open(const char *devicename, int _baudrate = B9600);
39  int close();
40  int setReadCallback( void (*_readCallback)(const unsigned char *buf, int len));
41  int write(const unsigned char *buf, int len);
42 
43  int send();
44  int receive();
47  int state;
48  int priority;
49  int run;
50  int debug;
51  int dprintf(const char *format, ...);
52  private:
53  void (*readCallback)(const unsigned char *buf, int len);
54  unsigned char tel_send[512];
55  unsigned char tel_receive[512];
58  int isOpen;
60 };
61 
62 #endif
63