ESPHome
2024.10.2
|
Definition of the register linked to a particular channel when SPAGE=0. More...
Variables | |
constexpr uint8_t | esphome::weikai::WKREG_SPAGE = 0x03 |
Global Page register c0/c1 0011. More... | |
constexpr uint8_t | esphome::weikai::WKREG_SCR = 0x04 |
Serial Control Register - c0/c1 0100. More... | |
constexpr uint8_t | esphome::weikai::SCR_TXEN = 1 << 1 |
transmission control (0: enable, 1: disable) More... | |
constexpr uint8_t | esphome::weikai::SCR_RXEN = 1 << 0 |
receiving control (0: enable, 1: disable) More... | |
constexpr uint8_t | esphome::weikai::WKREG_LCR = 0x05 |
Line Configuration Register - c0/c1 0101. More... | |
constexpr uint8_t | esphome::weikai::LCR_PAEN = 1 << 3 |
Parity enable (0: no check, 1: check) More... | |
constexpr uint8_t | esphome::weikai::LCR_PAR_F0 = 0 << 1 |
Parity force 0. More... | |
constexpr uint8_t | esphome::weikai::LCR_PAR_ODD = 1 << 1 |
Parity odd. More... | |
constexpr uint8_t | esphome::weikai::LCR_PAR_EVEN = 2 << 1 |
Parity even. More... | |
constexpr uint8_t | esphome::weikai::LCR_PAR_F1 = 3 << 1 |
Parity force 1. More... | |
constexpr uint8_t | esphome::weikai::LCR_STPL = 1 << 0 |
Stop length (0: 1 bit, 1: 2 bits) More... | |
constexpr uint8_t | esphome::weikai::WKREG_FCR = 0x06 |
FIFO Control Register - c0/c1 0110. More... | |
constexpr uint8_t | esphome::weikai::FCR_TFEN = 1 << 3 |
Transmitter FIFO enable. More... | |
constexpr uint8_t | esphome::weikai::FCR_RFEN = 1 << 2 |
Receiver FIFO enable. More... | |
constexpr uint8_t | esphome::weikai::FCR_TFRST = 1 << 1 |
Transmitter FIFO reset. More... | |
constexpr uint8_t | esphome::weikai::FCR_RFRST = 1 << 0 |
Receiver FIFO reset. More... | |
constexpr uint8_t | esphome::weikai::WKREG_SIER = 0x07 |
Serial Interrupt Enable Register (not used) - c0/c1 0111. More... | |
constexpr uint8_t | esphome::weikai::WKREG_SIFR = 0x08 |
Serial Interrupt Flag Register (not used) - c0/c1 1000. More... | |
constexpr uint8_t | esphome::weikai::WKREG_TFCNT = 0x09 |
Transmitter FIFO Count - c0/c1 1001. More... | |
constexpr uint8_t | esphome::weikai::WKREG_RFCNT = 0x0A |
Receiver FIFO count - c0/c1 1010. More... | |
constexpr uint8_t | esphome::weikai::WKREG_FSR = 0x0B |
FIFO Status Register - c0/c1 1011. More... | |
constexpr uint8_t | esphome::weikai::FSR_RFOE = 1 << 7 |
Receiver FIFO Overflow Error (0: no OE, 1: OE) More... | |
constexpr uint8_t | esphome::weikai::FSR_RFLB = 1 << 6 |
Receiver FIFO Line Break (0: no LB, 1: LB) More... | |
constexpr uint8_t | esphome::weikai::FSR_RFFE = 1 << 5 |
Receiver FIFO Frame Error (0: no FE, 1: FE) More... | |
constexpr uint8_t | esphome::weikai::FSR_RFPE = 1 << 4 |
Receiver Parity Error (0: no PE, 1: PE) More... | |
constexpr uint8_t | esphome::weikai::FSR_RFDAT = 1 << 3 |
Receiver FIFO count (0: empty, 1: not empty) More... | |
constexpr uint8_t | esphome::weikai::FSR_TFDAT = 1 << 2 |
Transmitter FIFO count (0: empty, 1: not empty) More... | |
constexpr uint8_t | esphome::weikai::FSR_TFFULL = 1 << 1 |
Transmitter FIFO full (0: not full, 1: full) More... | |
constexpr uint8_t | esphome::weikai::FSR_TBUSY = 1 << 0 |
Transmitter busy (0 nothing to transmit, 1: transmitter busy sending) More... | |
constexpr uint8_t | esphome::weikai::WKREG_LSR = 0x0C |
Line Status Register (not used - using FIFO) More... | |
constexpr uint8_t | esphome::weikai::WKREG_FDAT = 0x0D |
FIFO Data Register (not used - does not seems to work) More... | |
Definition of the register linked to a particular channel when SPAGE=0.
The channel registers are further splitted into two groups. This first group is defined when the Global register WKREG_SPAGE is 0
constexpr uint8_t esphome::weikai::FCR_RFEN = 1 << 2 |
Receiver FIFO enable.
Definition at line 189 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::FCR_RFRST = 1 << 0 |
Receiver FIFO reset.
Definition at line 193 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::FCR_TFEN = 1 << 3 |
Transmitter FIFO enable.
Definition at line 187 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::FCR_TFRST = 1 << 1 |
Transmitter FIFO reset.
Definition at line 191 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::FSR_RFDAT = 1 << 3 |
Receiver FIFO count (0: empty, 1: not empty)
Definition at line 251 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::FSR_RFFE = 1 << 5 |
Receiver FIFO Frame Error (0: no FE, 1: FE)
Definition at line 247 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::FSR_RFLB = 1 << 6 |
Receiver FIFO Line Break (0: no LB, 1: LB)
Definition at line 245 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::FSR_RFOE = 1 << 7 |
Receiver FIFO Overflow Error (0: no OE, 1: OE)
Definition at line 243 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::FSR_RFPE = 1 << 4 |
Receiver Parity Error (0: no PE, 1: PE)
Definition at line 249 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::FSR_TBUSY = 1 << 0 |
Transmitter busy (0 nothing to transmit, 1: transmitter busy sending)
Definition at line 257 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::FSR_TFDAT = 1 << 2 |
Transmitter FIFO count (0: empty, 1: not empty)
Definition at line 253 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::FSR_TFFULL = 1 << 1 |
Transmitter FIFO full (0: not full, 1: full)
Definition at line 255 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::LCR_PAEN = 1 << 3 |
Parity enable (0: no check, 1: check)
Definition at line 161 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::LCR_PAR_EVEN = 2 << 1 |
Parity even.
Definition at line 167 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::LCR_PAR_F0 = 0 << 1 |
Parity force 0.
Definition at line 163 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::LCR_PAR_F1 = 3 << 1 |
Parity force 1.
Definition at line 169 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::LCR_PAR_ODD = 1 << 1 |
Parity odd.
Definition at line 165 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::LCR_STPL = 1 << 0 |
Stop length (0: 1 bit, 1: 2 bits)
Definition at line 171 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::SCR_RXEN = 1 << 0 |
receiving control (0: enable, 1: disable)
Definition at line 145 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::SCR_TXEN = 1 << 1 |
transmission control (0: enable, 1: disable)
Definition at line 143 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_FCR = 0x06 |
FIFO Control Register - c0/c1 0110.
Definition at line 185 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_FDAT = 0x0D |
FIFO Data Register (not used - does not seems to work)
Definition at line 263 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_FSR = 0x0B |
FIFO Status Register - c0/c1 1011.
Definition at line 241 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_LCR = 0x05 |
Line Configuration Register - c0/c1 0101.
Definition at line 159 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_LSR = 0x0C |
Line Status Register (not used - using FIFO)
Definition at line 260 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_RFCNT = 0x0A |
Receiver FIFO count - c0/c1 1010.
Definition at line 219 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_SCR = 0x04 |
Serial Control Register - c0/c1 0100.
Definition at line 141 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_SIER = 0x07 |
Serial Interrupt Enable Register (not used) - c0/c1 0111.
Definition at line 196 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_SIFR = 0x08 |
Serial Interrupt Flag Register (not used) - c0/c1 1000.
Definition at line 199 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_SPAGE = 0x03 |
Global Page register c0/c1 0011.
Definition at line 127 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_TFCNT = 0x09 |
Transmitter FIFO Count - c0/c1 1001.
Definition at line 209 of file wk_reg_def.h.