File sstep_bridge.c¶
FileList > src > sstep_bridge.c
Go to the source code of this file
#include "sstep_internal.h"
Public Functions¶
| Type | Name |
|---|---|
| void | sstep_bridge_map (enum sstep_topology topology, sstep_acc_t va, sstep_acc_t vb, const struct sstep_gain * inv_vbus, sstep_acc_t vbus, uint16_t period, struct sstep_bridge_out * out) Map requested phase voltages to leg compare values (averaged power stage). |
Public Static Functions¶
| Type | Name |
|---|---|
| sstep_acc_t | acc_max (sstep_acc_t a, sstep_acc_t b) Larger of a and b. |
| sstep_acc_t | scale_to_unit (sstep_acc_t x, sstep_acc_t m) x / m for |x| <= m, keeping the sign of x (one division). |
Macros¶
| Type | Name |
|---|---|
| define | ACC_HALF [**SSTEP\_ACC\_HALF**](group__sstep__math.md#define-sstep_acc_half)0.5 (50 % duty cycle). |
Public Functions Documentation¶
function sstep_bridge_map¶
Map requested phase voltages to leg compare values (averaged power stage).
void sstep_bridge_map (
enum sstep_topology topology,
sstep_acc_t va,
sstep_acc_t vb,
const struct sstep_gain * inv_vbus,
sstep_acc_t vbus,
uint16_t period,
struct sstep_bridge_out * out
)
The voltage vector is scaled down with its direction kept when the stage cannot produce it: full bridge |a|, |b| <= 1, shared leg max(a,b,0) - min(a,b,0) <= 1, a and b relative to the measured bus voltage. Shared leg: common leg centred.
Parameters:
topologyPower stage topology (compiled in).vaRequested phase voltages [pu of V_base].inv_vbusV_base / bus voltage.vbusBus voltage [pu of V_base], 0 .. 2.periodCompare value for 100 % duty cycle.outResult.
Public Static Functions Documentation¶
function acc_max¶
Larger of a and b.
function scale_to_unit¶
x / m for |x| <= m, keeping the sign of x (one division).
Macro Definition Documentation¶
define ACC_HALF¶
0.5 (50 % duty cycle).
The documentation for this class was generated from the following file src/sstep_bridge.c