ESPHome
2024.11.1
|
Definition of the WeiKai registers. More...
Variables | |
constexpr uint8_t | esphome::weikai::WKREG_GENA = 0x00 |
Global Control Register - 00 0000. More... | |
constexpr uint8_t | esphome::weikai::GENA_C4EN = 1 << 3 |
Channel 4 enable clock (0: disable, 1: enable) More... | |
constexpr uint8_t | esphome::weikai::GENA_C3EN = 1 << 2 |
Channel 3 enable clock (0: disable, 1: enable) More... | |
constexpr uint8_t | esphome::weikai::GENA_C2EN = 1 << 1 |
Channel 2 enable clock (0: disable, 1: enable) More... | |
constexpr uint8_t | esphome::weikai::GENA_C1EN = 1 << 0 |
Channel 1 enable clock (0: disable, 1: enable) More... | |
constexpr uint8_t | esphome::weikai::WKREG_GRST = 0x01 |
Global Reset Register - 00 0001. More... | |
constexpr uint8_t | esphome::weikai::GRST_C4RST = 1 << 3 |
Channel 4 soft reset (0: not reset, 1: reset) More... | |
constexpr uint8_t | esphome::weikai::GRST_C3RST = 1 << 2 |
Channel 3 soft reset (0: not reset, 1: reset) More... | |
constexpr uint8_t | esphome::weikai::GRST_C2RST = 1 << 1 |
Channel 2 soft reset (0: not reset, 1: reset) More... | |
constexpr uint8_t | esphome::weikai::GRST_C1RST = 1 << 0 |
Channel 1 soft reset (0: not reset, 1: reset) More... | |
constexpr uint8_t | esphome::weikai::WKREG_GMUT = 0x02 |
Global Master channel control register (not used) - 000010. More... | |
constexpr uint8_t | esphome::weikai::WKREG_GIER = 0x10 |
Global interrupt register (not used) - 01 0000. More... | |
constexpr uint8_t | esphome::weikai::WKREG_GIFR = 0x11 |
Global interrupt flag register (not used) 01 0001. More... | |
constexpr uint8_t | esphome::weikai::WKREG_GPDIR = 0x21 |
Global GPIO direction register - 10 0001. More... | |
constexpr uint8_t | esphome::weikai::WKREG_GPDAT = 0x31 |
Global GPIO data register - 11 0001. More... | |
Definition of the WeiKai registers.
This section groups all Global Registers: these registers are global to the the WeiKai chip (i.e. independent of the UART channel used)
constexpr uint8_t esphome::weikai::GENA_C1EN = 1 << 0 |
Channel 1 enable clock (0: disable, 1: enable)
Definition at line 40 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::GENA_C2EN = 1 << 1 |
Channel 2 enable clock (0: disable, 1: enable)
Definition at line 38 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::GENA_C3EN = 1 << 2 |
Channel 3 enable clock (0: disable, 1: enable)
Definition at line 36 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::GENA_C4EN = 1 << 3 |
Channel 4 enable clock (0: disable, 1: enable)
Definition at line 34 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::GRST_C1RST = 1 << 0 |
Channel 1 soft reset (0: not reset, 1: reset)
Definition at line 62 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::GRST_C2RST = 1 << 1 |
Channel 2 soft reset (0: not reset, 1: reset)
Definition at line 60 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::GRST_C3RST = 1 << 2 |
Channel 3 soft reset (0: not reset, 1: reset)
Definition at line 58 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::GRST_C4RST = 1 << 3 |
Channel 4 soft reset (0: not reset, 1: reset)
Definition at line 56 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_GENA = 0x00 |
Global Control Register - 00 0000.
Definition at line 32 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_GIER = 0x10 |
Global interrupt register (not used) - 01 0000.
Definition at line 68 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_GIFR = 0x11 |
Global interrupt flag register (not used) 01 0001.
Definition at line 71 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_GMUT = 0x02 |
Global Master channel control register (not used) - 000010.
Definition at line 65 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_GPDAT = 0x31 |
Global GPIO data register - 11 0001.
Definition at line 99 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_GPDIR = 0x21 |
Global GPIO direction register - 10 0001.
Definition at line 85 of file wk_reg_def.h.
constexpr uint8_t esphome::weikai::WKREG_GRST = 0x01 |
Global Reset Register - 00 0001.
Definition at line 54 of file wk_reg_def.h.