Struct sstep_stage_cfg¶
Power stage and measurement parameters. More...
#include <sstep_ctrl.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint16_t | adc_full Largest ADC reading (4095 for 12 bits). |
| int32_t | adc_i_span Counts from 0 A to +i_full_scale_ma; negative for an inverting amplifier. |
| uint16_t | adc_i_zero Current ADC reading at 0 A [counts]. |
| uint32_t | adc_vbus_mv_full Bus voltage at ADC reading adc_full [mV]. |
| uint32_t | dead_time_ns Dead time [ns], for compensation; 0 = none. |
| uint32_t | i_full_scale_ma Phase current at ADC full scale [mA]; base of the per-unit current. |
| uint32_t | i_trip_ma Overcurrent trip [mA]; must not exceed i_full_scale_ma. |
| uint32_t | pwm_freq_hz PWM frequency [Hz]. |
| uint16_t | pwm_period_ticks Compare value for 100 % duty cycle. |
| enum sstep_topology | topology Power stage topology. |
| uint32_t | vbus_max_mv Overvoltage trip [mV]; 0 = disabled. |
| uint32_t | vbus_min_mv Undervoltage trip [mV]; 0 = disabled. |
| uint32_t | vbus_nominal_mv Nominal bus voltage [mV]; base of the per-unit voltage. |
Detailed Description¶
Example: B-G431B-ESC1.
Public Attributes Documentation¶
variable adc_full¶
Largest ADC reading (4095 for 12 bits).
variable adc_i_span¶
Counts from 0 A to +i_full_scale_ma; negative for an inverting amplifier.
variable adc_i_zero¶
Current ADC reading at 0 A [counts].
variable adc_vbus_mv_full¶
Bus voltage at ADC reading adc_full [mV].
variable dead_time_ns¶
Dead time [ns], for compensation; 0 = none.
variable i_full_scale_ma¶
Phase current at ADC full scale [mA]; base of the per-unit current.
variable i_trip_ma¶
Overcurrent trip [mA]; must not exceed i_full_scale_ma.
variable pwm_freq_hz¶
PWM frequency [Hz].
variable pwm_period_ticks¶
Compare value for 100 % duty cycle.
variable topology¶
Power stage topology.
ESC1: SSTEP_TOPOLOGY_SHARED_LEG.
variable vbus_max_mv¶
Overvoltage trip [mV]; 0 = disabled.
variable vbus_min_mv¶
Undervoltage trip [mV]; 0 = disabled.
variable vbus_nominal_mv¶
Nominal bus voltage [mV]; base of the per-unit voltage.
The documentation for this class was generated from the following file inc/sstep_ctrl.h