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
7
namespace
esphome
{
8
namespace
home_io_control
{
9
10
namespace
{
11
12
constexpr
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
17
void
RadioDriver::reset_hardware_
() {
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
esphome::home_io_control::RadioDriver::rst_pin_
InternalGPIOPin * rst_pin_
Definition
radio_interface.h:233
esphome::home_io_control::RadioDriver::reset_hardware_
void reset_hardware_()
Hardware reset sequence common to all SX chips.
Definition
radio_interface.cpp:17
esphome::home_io_control
Definition
hub_core.cpp:22
esphome
Definition
hub_core.cpp:21
radio_interface.h
Radio abstraction layer for IO-Homecontrol.
components
home_io_control
radio_interface.cpp
Generated by
1.16.1