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
26
27
28/*-----------------------------------------------------------------------------
29 GLOBAL CLASS
30-----------------------------------------------------------------------------*/
31
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 emulation library using a generic HardwareSerial interface.
version_t
LIN protocol version.
@ LIN_V2
LIN protocol version 2.x.
LIN slave node class via ESP8266 HardwareSerial.
void begin(uint16_t Baudrate=19200)
Open serial interface.
LIN slave node class via generic HardwareSerial.