ESPHome  2024.10.2
Public Member Functions | Protected Member Functions | Protected Attributes
esphome::dac7678::DAC7678Channel Class Reference

#include <dac7678_output.h>

Inheritance diagram for esphome::dac7678::DAC7678Channel:
esphome::output::FloatOutput esphome::Parented< DAC7678Output > esphome::output::BinaryOutput

Public Member Functions

void set_channel (uint8_t channel)
 
- Public Member Functions inherited from esphome::output::FloatOutput
void set_max_power (float max_power)
 Set the maximum power output of this component. More...
 
void set_min_power (float min_power)
 Set the minimum power output of this component. More...
 
void set_zero_means_zero (bool zero_means_zero)
 Sets this output to ignore min_power for a 0 state. More...
 
void set_level (float state)
 Set the level of this float output, this is called from the front-end. More...
 
virtual void update_frequency (float frequency)
 Set the frequency of the output for PWM outputs. More...
 
float get_max_power () const
 Get the maximum power output. More...
 
float get_min_power () const
 Get the minimum power output. More...
 
- Public Member Functions inherited from esphome::output::BinaryOutput
void set_inverted (bool inverted)
 Set the inversion state of this binary output. More...
 
void set_power_supply (power_supply::PowerSupply *power_supply)
 Use this to connect up a power supply to this output. More...
 
virtual void set_state (bool state)
 Enable or disable this binary output. More...
 
virtual void turn_on ()
 Enable this binary output. More...
 
virtual void turn_off ()
 Disable this binary output. More...
 
bool is_inverted () const
 Return whether this binary output is inverted. More...
 
- Public Member Functions inherited from esphome::Parented< DAC7678Output >
 Parented ()
 
 Parented (DAC7678Output *parent)
 
DAC7678Output * get_parent () const
 Get the parent of this object. More...
 
void set_parent (DAC7678Output *parent)
 Set the parent of this object. More...
 

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. More...
 

Protected Attributes

const uint16_t full_scale_ = 0xFFF
 
uint8_t channel_
 
- 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< DAC7678Output >
DAC7678Output * parent_
 

Detailed Description

Definition at line 13 of file dac7678_output.h.

Member Function Documentation

◆ set_channel()

void esphome::dac7678::DAC7678Channel::set_channel ( uint8_t  channel)
inline

Definition at line 15 of file dac7678_output.h.

◆ write_state()

void esphome::dac7678::DAC7678Channel::write_state ( float  state)
overrideprotectedvirtual

Implements esphome::output::FloatOutput.

Definition at line 79 of file dac7678_output.cpp.

Field Documentation

◆ channel_

uint8_t esphome::dac7678::DAC7678Channel::channel_
protected

Definition at line 24 of file dac7678_output.h.

◆ full_scale_

const uint16_t esphome::dac7678::DAC7678Channel::full_scale_ = 0xFFF
protected

Definition at line 20 of file dac7678_output.h.


The documentation for this class was generated from the following files: