16 #include <SoftwareSerial.h>
32 virtual int i_available(
void);
33 virtual void begin(
long b);
35 byte req[4] = { 0x02, 0x01, 0x00, 0xFE };
36 byte _reset[4] = { 0x02, 0xA0, 0x00, 0xFF-0xA0 };
44 RD200M(HardwareSerial &serial);
46 HardwareSerial* _serial;
47 int i_available(
void){
return _serial->available();}
48 int available(
void){
return _serial->available();}
49 int read(
void){
return _serial->read(); }
50 void begin(
long b){ _serial->begin(b);}
51 void end(
void){ _serial->end();}
52 size_t write(uint8_t b){
return _serial->write(b);}
53 int peek(
void){
return _serial->peek();};
54 void flush(
void){_serial->flush();};
64 int i_available(
void){
return SoftwareSerial::available();}
65 int read(
void){
return SoftwareSerial::read(); }
66 void begin(
long b){ SoftwareSerial::begin(b);}
67 void end(
void){ SoftwareSerial::end();}
68 int available(
void){
return SoftwareSerial::available();}
69 size_t write(uint8_t b){
return SoftwareSerial::write(b);}
70 int peek(
void){
return SoftwareSerial::peek();};
71 void flush(
void){SoftwareSerial::flush();};
RD200MSoftserial(uint8_t rxPin, uint8_t txPin)
Definition: RD200M.cpp:92