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
4#include "radio_interface.h"
5#include "esphome/core/application.h"
6
7namespace esphome {
8namespace home_io_control {
9
10namespace {
11
12constexpr uint32_t RADIO_RESET_PULSE_DELAY_MS =
13 10; ///< Reset low/high pulse used by both radio drivers during hardware reset.
14
15} // namespace
16
18 if (this->rst_pin_ != nullptr) {
19 this->rst_pin_->digital_write(false);
20 delay(RADIO_RESET_PULSE_DELAY_MS);
21 this->rst_pin_->digital_write(true);
22 delay(RADIO_RESET_PULSE_DELAY_MS);
23 }
24}
25
26} // namespace home_io_control
27} // namespace esphome
void reset_hardware_()
Hardware reset sequence common to all SX chips.
Radio abstraction layer for IO-Homecontrol.