|
ESPHome 2025.12.0-dev
|
#include <mcp4461_output.h>
Public Member Functions | |
| Mcp4461Wiper (Mcp4461Component *parent, Mcp4461WiperIdx wiper) | |
| void | set_level (float state) |
| Set level of wiper. | |
| void | set_state (bool state) override |
| Enables/Disables current output using bool parameter. | |
| void | turn_on () override |
| Enables current output. | |
| void | turn_off () override |
| Disables current output. | |
| float | read_state () |
| Read current device wiper state without updating internal output state. | |
| float | update_state () |
| Update current output state using device wiper state. | |
| void | increase_wiper () |
| Increase wiper by 1 tap. | |
| void | decrease_wiper () |
| Decrease wiper by 1 tap. | |
| void | enable_terminal (char terminal) |
| Enable given terminal. | |
| void | disable_terminal (char terminal) |
| Disable given terminal. | |
Public Member Functions inherited from esphome::output::FloatOutput | |
| void | set_max_power (float max_power) |
| Set the maximum power output of this component. | |
| void | set_min_power (float min_power) |
| Set the minimum power output of this component. | |
| void | set_zero_means_zero (bool zero_means_zero) |
| Sets this output to ignore min_power for a 0 state. | |
| void | set_level (float state) |
| Set the level of this float output, this is called from the front-end. | |
| virtual void | update_frequency (float frequency) |
| Set the frequency of the output for PWM outputs. | |
| float | get_max_power () const |
| Get the maximum power output. | |
| float | get_min_power () const |
| Get the minimum power output. | |
Public Member Functions inherited from esphome::output::BinaryOutput | |
| void | set_inverted (bool inverted) |
| Set the inversion state of this binary output. | |
| void | set_power_supply (power_supply::PowerSupply *power_supply) |
| Use this to connect up a power supply to this output. | |
| bool | is_inverted () const |
| Return whether this binary output is inverted. | |
Public Member Functions inherited from esphome::Parented< Mcp4461Component > | |
| Parented () | |
| Parented (Mcp4461Component *parent) | |
| Mcp4461Component * | get_parent () const |
| Get the parent of this object. | |
| void | set_parent (Mcp4461Component *parent) |
| Set the parent of this object. | |
Protected Member Functions | |
| void | write_state (float state) override |
Protected Member Functions inherited from esphome::output::FloatOutput | |
| void | write_state (bool state) override |
| Implement BinarySensor's write_enabled; this should never be called. | |
Protected Member Functions inherited from esphome::output::BinaryOutput | |
Protected Attributes | |
| Mcp4461Component * | parent_ |
| Mcp4461WiperIdx | wiper_ |
| float | state_ |
Protected Attributes inherited from esphome::output::FloatOutput | |
| float | max_power_ {1.0f} |
| float | min_power_ {0.0f} |
| bool | zero_means_zero_ |
Protected Attributes inherited from esphome::output::BinaryOutput | |
| bool | inverted_ {false} |
| power_supply::PowerSupplyRequester | power_ {} |
Protected Attributes inherited from esphome::Parented< Mcp4461Component > | |
| Mcp4461Component * | parent_ |
Definition at line 11 of file mcp4461_output.h.
|
inline |
Definition at line 13 of file mcp4461_output.h.
| void esphome::mcp4461::Mcp4461Wiper::decrease_wiper | ( | ) |
Decrease wiper by 1 tap.
Definition at line 60 of file mcp4461_output.cpp.
| void esphome::mcp4461::Mcp4461Wiper::disable_terminal | ( | char | terminal | ) |
Disable given terminal.
| [in] | terminal | single char parameter defining desired terminal to disable, one of { 'a', 'b', 'w', 'h' } |
Definition at line 70 of file mcp4461_output.cpp.
| void esphome::mcp4461::Mcp4461Wiper::enable_terminal | ( | char | terminal | ) |
Enable given terminal.
| [in] | terminal | single char parameter defining desired terminal to enable, one of { 'a', 'b', 'w', 'h' } |
Definition at line 68 of file mcp4461_output.cpp.
| void esphome::mcp4461::Mcp4461Wiper::increase_wiper | ( | ) |
Increase wiper by 1 tap.
Definition at line 52 of file mcp4461_output.cpp.
| float esphome::mcp4461::Mcp4461Wiper::read_state | ( | ) |
Read current device wiper state without updating internal output state.
Definition at line 33 of file mcp4461_output.cpp.
| void esphome::mcp4461::Mcp4461Wiper::set_level | ( | float | state | ) |
Set level of wiper.
| [in] | state | - The desired float level in range 0-1.0 |
Definition at line 13 of file mcp4461_output.cpp.
|
overridevirtual |
Enables/Disables current output using bool parameter.
| [in] | state | boolean var representing desired state (true=ON, false=OFF) |
Reimplemented from esphome::output::BinaryOutput.
Definition at line 40 of file mcp4461_output.cpp.
|
overridevirtual |
Disables current output.
Reimplemented from esphome::output::BinaryOutput.
Definition at line 50 of file mcp4461_output.cpp.
|
overridevirtual |
Enables current output.
Reimplemented from esphome::output::BinaryOutput.
Definition at line 48 of file mcp4461_output.cpp.
| float esphome::mcp4461::Mcp4461Wiper::update_state | ( | ) |
Update current output state using device wiper state.
Definition at line 35 of file mcp4461_output.cpp.
|
overrideprotectedvirtual |
Implements esphome::output::FloatOutput.
Definition at line 27 of file mcp4461_output.cpp.
|
protected |
Definition at line 43 of file mcp4461_output.h.
|
protected |
Definition at line 45 of file mcp4461_output.h.
|
protected |
Definition at line 44 of file mcp4461_output.h.