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