10#if defined(ARDUINO_ARCH_ESP32)
15#ifndef _LIN_MASTER_HW_SERIAL_ESP32_H_
16#define _LIN_MASTER_HW_SERIAL_ESP32_H_
63 LIN_Master_HardwareSerial_ESP32(HardwareSerial &Interface, uint8_t PinRx, uint8_t PinTx,
const char NameLIN[] =
"Master",
const int8_t PinTxEN = INT8_MIN);
66 void begin(uint16_t Baudrate = 19200);
Base class for LIN master emulation (non-functional)
LIN master node base class.
state_t
state of LIN master state machine. Use bitmasks for fast checking multiple states
LIN master node class via ESP32 HardwareSerial.
LIN_Master_Base::state_t _sendFrame(void)
Send LIN bytes (request frame: SYNC+ID+DATA[]+CHK; response frame: SYNC+ID)
uint32_t timeStartBreak
micros() when BREAK was sent
void begin(uint16_t Baudrate=19200)
Open serial interface.
uint8_t pinTx
pin used for transmit
void end(void)
Close serial interface.
HardwareSerial * pSerial
serial interface used for LIN
LIN_Master_Base::state_t _receiveFrame(void)
Read and check LIN frame.
LIN_Master_Base::state_t _sendBreak(void)
Send LIN break.
uint8_t pinRx
pin used for receive