ccs table model

Signed-off-by: James Cherry <[email protected]>
This commit is contained in:
James Cherry
2023-05-06 15:34:41 -07:00
parent 7f82c152d9
commit ffec2a1db0
2 changed files with 73 additions and 136 deletions
+11 -10
View File
@@ -507,21 +507,20 @@ public:
const RiseFall *rf() const { return rf_; }
Table1 voltageWaveform(float in_slew,
float load_cap);
float timeToVoltage(float in_slew,
float load_cap,
float voltage);
float voltageTime(float in_slew,
float load_cap,
float voltage);
const Table1 *currentWaveform(float slew,
float cap);
float referenceTime(float slew);
static bool checkAxes(TableTemplate *tbl_template);
private:
float timeToVoltage(const Table1 *waveform,
float voltage);
size_t findValueIndex(const Table1 *table,
float value);
Table1 *voltageWaveform(size_t wave_index,
float cap);
float voltageTime1(float voltage,
size_t wave_index,
float cap);
FloatSeq *voltageTimes(size_t wave_index,
float cap);
// Row.
TableAxisPtr slew_axis_;
@@ -529,8 +528,10 @@ private:
TableAxisPtr cap_axis_;
const RiseFall *rf_;
Table1Seq current_waveforms_;
Table1Seq voltage_waveforms_;
FloatTable voltage_times_;
Table1 *ref_times_;
float voltage_max_;
static constexpr size_t voltage_waveform_step_count_ = 20;
};
class DriverWaveform