5#include <HardwareSerial.h>
58 void setup()
override;
95 static bool serial0_in_use;
96 static bool serial0_swapped;
Copy of GPIOPin that is safe to use from ISRs (with no virtual functions)
void rx_finalize_pending_()
UARTParityOptions parity_
void write_bit_(bool bit, uint32_t *wait, const uint32_t &start, uint32_t bit_time)
SoftwareSerialRxDecoder rx_
static void gpio_intr_edge(ESP8266SoftwareSerial *arg)
void ESPHOME_ALWAYS_INLINE rx_sync_()
bool read_bit_(uint32_t *wait, const uint32_t &start, uint32_t bit_time)
ISRInternalGPIOPin rx_pin_
void wait_(uint32_t *wait, const uint32_t &start, uint32_t bit_time)
InternalGPIOPin * gpio_tx_pin_
InternalGPIOPin * gpio_rx_pin_
static void gpio_intr(ESP8266SoftwareSerial *arg)
Above SW_SERIAL_EDGE_MODE_MAX_BAUD; reads the whole byte in the ISR.
void write_byte(uint8_t data)
ISRInternalGPIOPin tx_pin_
size_t available() override
size_t available_for_write() override
float get_setup_priority() const override
void load_settings()
Load the UART settings.
void check_logger_conflict() override
bool peek_byte(uint8_t *data) override
bool read_array(uint8_t *data, size_t len) override
void dump_config() override
HardwareSerial * hw_serial_
UARTFlushResult flush() override
void write_array(const uint8_t *data, size_t len) override
ESP8266SoftwareSerial * sw_serial_
Software serial RX decoder: on_edge() counts bits from the time between edges; finalize() completes a...
void load_settings()
Load the UART settings.
constexpr float BUS
For communication buses like i2c/spi.
UARTFlushResult
Result of a flush() call.