ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::tas58xx::ModelInfo Struct Reference

Everything that differs between models of the family. More...

#include <tas58xx.h>

Data Fields

const LogString *(* name )()
 
const uint8_t(* startup_sequence )[2]
 Remainder of the startup sequence, run after the reset, as {register, value} pairs in PROGMEM.
 
uint8_t startup_sequence_length
 
uint8_t mixer_book
 Location of the four 9.23 fixed point input mixer coefficients: LEFT_TO_LEFT, RIGHT_TO_LEFT, LEFT_TO_RIGHT, RIGHT_TO_RIGHT.
 
uint8_t mixer_page
 
uint8_t mixer_register
 
uint32_t fault_error_mask
 Faults logged as errors and reported by have_fault.
 
uint32_t fault_warning_mask
 Faults logged as warnings.
 
uint32_t fault_output_off_mask
 Faults that keep the output off until cleared by activate()
 
uint32_t fault_latched_mask
 Faults that stay set after the condition is gone and are cleared after each read.
 
const LogString *(* fault_name )(uint8_t index)
 
uint8_t fault_sensor_bits [FAULT_SENSOR_COUNT]
 Bit index for each FaultSensor, NO_BIT used where the model does not have that fault bit.
 

Detailed Description

Everything that differs between models of the family.

One constant instance exists per model, see model_*.cpp, and each TAS58xx instance points to the one for its model.

Fault bits are packed into a 32 bit word: CHAN_FAULT, GLOBAL_FAULT1, GLOBAL_FAULT2 and OT_WARNING, one byte each, from low to high. A bit index is register * 8 + bit.

Definition at line 70 of file tas58xx.h.

Field Documentation

◆ fault_error_mask

uint32_t esphome::tas58xx::ModelInfo::fault_error_mask

Faults logged as errors and reported by have_fault.

Definition at line 81 of file tas58xx.h.

◆ fault_latched_mask

uint32_t esphome::tas58xx::ModelInfo::fault_latched_mask

Faults that stay set after the condition is gone and are cleared after each read.

Definition at line 87 of file tas58xx.h.

◆ fault_name

const LogString *(* esphome::tas58xx::ModelInfo::fault_name) (uint8_t index)

Definition at line 88 of file tas58xx.h.

◆ fault_output_off_mask

uint32_t esphome::tas58xx::ModelInfo::fault_output_off_mask

Faults that keep the output off until cleared by activate()

Definition at line 85 of file tas58xx.h.

◆ fault_sensor_bits

uint8_t esphome::tas58xx::ModelInfo::fault_sensor_bits[FAULT_SENSOR_COUNT]

Bit index for each FaultSensor, NO_BIT used where the model does not have that fault bit.

Definition at line 90 of file tas58xx.h.

◆ fault_warning_mask

uint32_t esphome::tas58xx::ModelInfo::fault_warning_mask

Faults logged as warnings.

Definition at line 83 of file tas58xx.h.

◆ mixer_book

uint8_t esphome::tas58xx::ModelInfo::mixer_book

Location of the four 9.23 fixed point input mixer coefficients: LEFT_TO_LEFT, RIGHT_TO_LEFT, LEFT_TO_RIGHT, RIGHT_TO_RIGHT.

Definition at line 77 of file tas58xx.h.

◆ mixer_page

uint8_t esphome::tas58xx::ModelInfo::mixer_page

Definition at line 78 of file tas58xx.h.

◆ mixer_register

uint8_t esphome::tas58xx::ModelInfo::mixer_register

Definition at line 79 of file tas58xx.h.

◆ name

const LogString *(* esphome::tas58xx::ModelInfo::name) ()

Definition at line 71 of file tas58xx.h.

◆ startup_sequence

const uint8_t(* esphome::tas58xx::ModelInfo::startup_sequence)[2]

Remainder of the startup sequence, run after the reset, as {register, value} pairs in PROGMEM.

Definition at line 73 of file tas58xx.h.

◆ startup_sequence_length

uint8_t esphome::tas58xx::ModelInfo::startup_sequence_length

Definition at line 74 of file tas58xx.h.


The documentation for this struct was generated from the following file: