rllib
1
|
#include <rl3964r.h>
Public Types | |
enum | priorityEnum { highPriority = 0, lowPriority } |
Public Member Functions | |
rl3964R (int _priority=highPriority) | |
virtual | ~rl3964R () |
int | open (const char *devicename, int _baudrate=B9600) |
int | close () |
int | setReadCallback (void(*_readCallback)(const unsigned char *buf, int len)) |
int | write (const unsigned char *buf, int len) |
int | send () |
int | receive () |
int | dprintf (const char *format,...) |
Public Attributes | |
rlThread | receiver |
rlSerial | tty |
int | state |
int | priority |
int | run |
int | debug |
Private Attributes | |
void(* | readCallback )(const unsigned char *buf, int len) |
unsigned char | tel_send [512] |
unsigned char | tel_receive [512] |
int | tel_send_length |
int | tel_receive_length |
int | isOpen |
int | send_result |
This class implements the siemens 3964R dust protocol. The read messages must be handled within the callback routine.
Enumerator | |
---|---|
highPriority | |
lowPriority |
Definition at line 30 of file rl3964r.h.
rl3964R::rl3964R | ( | int | _priority = highPriority | ) |
Definition at line 124 of file rl3964r.cpp.
|
virtual |
Definition at line 135 of file rl3964r.cpp.
int rl3964R::close | ( | ) |
Definition at line 159 of file rl3964r.cpp.
int rl3964R::dprintf | ( | const char * | format, |
... | |||
) |
Definition at line 310 of file rl3964r.cpp.
int rl3964R::open | ( | const char * | devicename, |
int | _baudrate = B9600 |
||
) |
Definition at line 140 of file rl3964r.cpp.
int rl3964R::receive | ( | ) |
Definition at line 248 of file rl3964r.cpp.
int rl3964R::send | ( | ) |
Definition at line 201 of file rl3964r.cpp.
int rl3964R::setReadCallback | ( | void(*)(const unsigned char *buf, int len) | _readCallback | ) |
Definition at line 176 of file rl3964r.cpp.
int rl3964R::write | ( | const unsigned char * | buf, |
int | len | ||
) |
Definition at line 182 of file rl3964r.cpp.
|
private |