BayEOS-Arduino  1.8.0_0.0.4
BaySoftwareSerial.cpp
1 #include "BaySoftwareSerial.h"
2 BaySoftwareSerial::BaySoftwareSerial(uint8_t rxPin, uint8_t txPin,int timeout):SoftwareSerial(rxPin,txPin){
3  BaySerialInterface::_timeout=timeout;
4 }
5 
7  return SoftwareSerial::available();
8 }
9 int BaySoftwareSerial::i_available(void){
10  return SoftwareSerial::available();
11 }
12 void BaySoftwareSerial::begin(long baud){
13  SoftwareSerial::begin(baud);
14 }
15 void BaySoftwareSerial::flush(void){
16  SoftwareSerial::flush();
17 }
18 void BaySoftwareSerial::end(void){
19  SoftwareSerial::end();
20 }
21 int BaySoftwareSerial::read(void){
22  return SoftwareSerial::read();
23 }
24 size_t BaySoftwareSerial::write(uint8_t c){
25  return SoftwareSerial::write(c);
26 }
BaySoftwareSerial(uint8_t rxPin, uint8_t txPin, int timeout=10000)