| LIN_slave_portable_Arduino 1.4 Arduino library for Local Interconnect Network slave node emulation

Loading...
Searching...
No Matches
LIN_slave_HardwareSerial_ESP8266.h
Go to the documentation of this file.
1
10// assert ESP8266 platform
11#if defined(ARDUINO_ARCH_ESP8266)
12
13/*-----------------------------------------------------------------------------
14 MODULE DEFINITION FOR MULTIPLE INCLUSION
15-----------------------------------------------------------------------------*/
16#ifndef _LIN_SLAVE_HW_SERIAL_ESP8266_H_
17#define _LIN_SLAVE_HW_SERIAL_ESP8266_H_
18
19
20/*-----------------------------------------------------------------------------
21 INCLUDE FILES
22-----------------------------------------------------------------------------*/
23
24// include required libraries
25#include <LIN_slave_HardwareSerial.h>
26
27
28/*-----------------------------------------------------------------------------
29 GLOBAL CLASS
30-----------------------------------------------------------------------------*/
31
37 class LIN_Slave_HardwareSerial_ESP8266 : public LIN_Slave_HardwareSerial
38{
39 // PRIVATE VARIABLES
40 private:
41
42 bool swapPins;
43
44
45 // PUBLIC METHODS
46 public:
47
49 LIN_Slave_HardwareSerial_ESP8266(bool SwapPins = false, uint16_t MinFramePause=1000L,
50 LIN_Slave_Base::version_t Version = LIN_Slave_Base::LIN_V2, const char NameLIN[] = "Slave", uint32_t TimeoutRx = 1500L, const int8_t PinTxEN = INT8_MIN);
51
53 void begin(uint16_t Baudrate = 19200);
54
56 void end(void);
57
58}; // class LIN_Slave_HardwareSerial_ESP8266
59
60
61/*-----------------------------------------------------------------------------
62 END OF MODULE DEFINITION FOR MULTIPLE INLUSION
63-----------------------------------------------------------------------------*/
64#endif // _LIN_SLAVE_HW_SERIAL_ESP8266_H_
65
66#endif // ARDUINO_ARCH_ESP8266
67
68/*-----------------------------------------------------------------------------
69 END OF FILE
70-----------------------------------------------------------------------------*/
LIN_slave_HardwareSerial.h
LIN slave emulation library using a generic HardwareSerial interface.
LIN_Slave_Base::version_t
version_t
LIN protocol version.
Definition LIN_slave_Base.h:58
LIN_Slave_Base::LIN_V2
@ LIN_V2
LIN protocol version 2.x.
Definition LIN_slave_Base.h:60
LIN_Slave_HardwareSerial_ESP8266
LIN slave node class via ESP8266 HardwareSerial.
Definition LIN_slave_HardwareSerial_ESP8266.h:38
LIN_Slave_HardwareSerial_ESP8266::end
void end(void)
Close serial interface.
Definition LIN_slave_HardwareSerial_ESP8266.cpp:75
LIN_Slave_HardwareSerial_ESP8266::begin
void begin(uint16_t Baudrate=19200)
Open serial interface.
Definition LIN_slave_HardwareSerial_ESP8266.cpp:52
LIN_Slave_HardwareSerial
LIN slave node class via generic HardwareSerial.
Definition LIN_slave_HardwareSerial.h:42