|
| | ModbusFloatOutput (uint16_t start_address, uint8_t offset, SensorValueType value_type) |
| |
| void | set_parent (ModbusController *parent) |
| |
| void | set_write_multiply (float factor) |
| |
| void | parse_and_publish (std::span< const uint8_t > data) override |
| |
| void | set_write_template (write_transform_func_t f) |
| |
| void | set_use_write_mutiple (bool use_write_multiple) |
| |
| 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.
|
| |
| template<bool _use_output_float_power_scaling = false> |
| void | set_max_power (float max_power) |
| |
| template<bool _use_output_float_power_scaling = false> |
| void | set_min_power (float min_power) |
| |
| template<bool _use_output_float_power_scaling = false> |
| void | set_zero_means_zero (bool zero_means_zero) |
| |
| 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.
|
| |
| float | get_max_power () const |
| | Get the maximum power output.
|
| |
| float | get_min_power () const |
| | Get the minimum power output.
|
| |
| 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.
|
| |
| virtual void | set_state (bool state) |
| | Enable or disable this binary output.
|
| |
| virtual void | turn_on () |
| | Enable this binary output.
|
| |
| virtual void | turn_off () |
| | Disable this binary output.
|
| |
| bool | is_inverted () const |
| | Return whether this binary output is inverted.
|
| |
| bool | addresses_bits () const |
| | Coils and discrete inputs address individual bits; every other type addresses 16-bit registers.
|
| |
| uint16_t | write_address () const |
| | Address a write entity (switch/number/select) targets, derived from its resolved position within the range so that a write lands on the register the sensor reads from.
|
| |
| void | set_offset_from_start_address (uint8_t offset) |
| | Records the offset as configured, and seeds the resolved position with it.
|
| |
| void | set_address (uint16_t address) |
| | Sets the configured address, and points the range base at it.
|
| |
| void | set_custom_pdu (std::initializer_list< uint8_t > pdu) |
| |
| virtual uint16_t | entity_count () const |
| | Entities this item spans: one bit for bit-addressed types, ceil(bytes / 2) registers for RAW with a response_size, else the value type's register width.
|
| |
| virtual size_t | get_register_size () const |
| | Bytes this item's registers occupy in a response: one per bit for bit-addressed types; response_size when set (devices that answer more bytes per register than the standard two); else two per register.
|
| |
| void | set_register_size (uint8_t register_size) |
| |
| bool | dispatched () const |
| | Whether the lambda called a request helper since the last clear_dispatched_().
|
| |
| void | set_write_options (modbus::CommandOptions options) |
| |
| bool | write_single_register (uint16_t address, uint16_t value) |
| |
| bool | write_single_coil (uint16_t address, bool value) |
| |
| bool | write_multiple_registers (uint16_t address, std::span< const uint16_t > values) |
| |
| bool | write_multiple_coils (uint16_t address, std::span< const bool > values) |
| |
| bool | write_multiple_coils (uint16_t address, modbus::PackedBits bits) |
| |
| bool | queue_pdu (std::span< const uint8_t > pdu) |
| |
| bool | queue_pdu (std::span< const uint8_t > pdu, modbus::CommandOptions options) |
| |
| void | clear_tx_queue_for_device () |
| |
Definition at line 10 of file modbus_output.h.