rllib  1
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 
int receive()
Definition: rl3964r.cpp:248
rl3964R(int _priority=highPriority)
Definition: rl3964r.cpp:124
int send()
Definition: rl3964r.cpp:201
virtual ~rl3964R()
Definition: rl3964r.cpp:135
rlSerial tty
Definition: rl3964r.h:46
int write(const unsigned char *buf, int len)
Definition: rl3964r.cpp:182
int setReadCallback(void(*_readCallback)(const unsigned char *buf, int len))
Definition: rl3964r.cpp:176
#define B9600
Definition: rlserial.h:48
rlThread receiver
Definition: rl3964r.h:45
int close()
Definition: rl3964r.cpp:159
int send_result
Definition: rl3964r.h:59
int dprintf(const char *format,...)
Definition: rl3964r.cpp:310
unsigned char tel_send[512]
Definition: rl3964r.h:54
int run
Definition: rl3964r.h:49
int isOpen
Definition: rl3964r.h:58
int open(const char *devicename, int _baudrate=B9600)
Definition: rl3964r.cpp:140
int state
Definition: rl3964r.h:47
int tel_receive_length
Definition: rl3964r.h:57
int priority
Definition: rl3964r.h:48
int debug
Definition: rl3964r.h:50
unsigned char tel_receive[512]
Definition: rl3964r.h:55
int tel_send_length
Definition: rl3964r.h:56
priorityEnum
Definition: rl3964r.h:30
void(* readCallback)(const unsigned char *buf, int len)
Definition: rl3964r.h:53