ESPHome
2024.10.3
esphome
esphome
components
aic3204
automation.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/automation.h
"
4
#include "
esphome/core/component.h
"
5
#include "
aic3204.h
"
6
7
namespace
esphome
{
8
namespace
aic3204 {
9
10
template
<
typename
... Ts>
class
SetAutoMuteAction
:
public
Action
<Ts...> {
11
public
:
12
explicit
SetAutoMuteAction
(
AIC3204
*aic3204) :
aic3204_
(aic3204) {}
13
14
TEMPLATABLE_VALUE
(uint8_t, auto_mute_mode)
15
16
void
play
(Ts...
x
)
override
{ this->
aic3204_
->
set_auto_mute_mode
(this->auto_mute_mode_.value(
x
...)); }
17
18
protected
:
19
AIC3204
*
aic3204_
;
20
};
21
22
}
// namespace aic3204
23
}
// namespace esphome
aic3204.h
esphome::aic3204::SetAutoMuteAction::aic3204_
AIC3204 * aic3204_
Definition:
automation.h:19
esphome::aic3204::SetAutoMuteAction::SetAutoMuteAction
SetAutoMuteAction(AIC3204 *aic3204)
Definition:
automation.h:12
x
uint16_t x
Definition:
tt21100.cpp:17
esphome::aic3204::AIC3204
Definition:
aic3204.h:65
automation.h
esphome::aic3204::AIC3204::set_auto_mute_mode
bool set_auto_mute_mode(uint8_t auto_mute_mode)
Definition:
aic3204.cpp:130
esphome::Action
Definition:
automation.h:121
esphome::aic3204::SetAutoMuteAction
Definition:
automation.h:10
esphome::aic3204::SetAutoMuteAction::TEMPLATABLE_VALUE
TEMPLATABLE_VALUE(uint8_t, auto_mute_mode) void play(Ts... x) override
Definition:
automation.h:14
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::Action< Ts... >::play
virtual void play(Ts... x)=0
Generated by
1.8.13