Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
radio_interface.cpp
Go to the documentation of this file.
1/// @file radio_interface.cpp
2/// @brief Implementation of non-inline RadioDriver methods.
3/// @ingroup hioc_radio
4
5#include "radio_interface.h"
6#include "esphome/core/application.h"
7
8namespace esphome {
9namespace home_io_control {
10
11namespace {
12
13constexpr uint32_t RADIO_RESET_PULSE_DELAY_MS =
14 10; ///< Reset low/high pulse used by both radio drivers during hardware reset.
15
16} // namespace
17
19 if (this->rst_pin_ != nullptr) {
20 this->rst_pin_->digital_write(false);
21 delay(RADIO_RESET_PULSE_DELAY_MS);
22 this->rst_pin_->digital_write(true);
23 delay(RADIO_RESET_PULSE_DELAY_MS);
24 }
25}
26
27} // namespace home_io_control
28} // namespace esphome
void reset_hardware_()
Hardware reset sequence common to all SX chips.
Radio abstraction layer for IO-Homecontrol.