rusEFI
The most advanced open source ECU
Variables
stepper_dual_hbridge.cpp File Reference

Variables

static const int8_t phaseA []
 
static const int8_t phaseB []
 
static const int8_t microPhases []
 
static const int maxNumSteps = 8
 
static constexpr int tableSizeMask = efi::size(microPhases) - 1
 
static constexpr float phaseDutyCycleDivisor = 1.0f / (100.0f * 100.0f)
 

Variable Documentation

◆ maxNumSteps

const int maxNumSteps = 8
static

◆ microPhases

const int8_t microPhases[]
static
Initial value:
= {
0, 20, 38, 56, 71, 83, 92, 98,
100, 98, 92, 83, 71, 56, 38, 20,
0, -20, -38, -56, -71, -83, -92, -98,
-100, -98, -92, -83, -71, -56, -38, -20
}

Definition at line 25 of file stepper_dual_hbridge.cpp.

Referenced by DualHBridgeStepper::update().

◆ phaseA

const int8_t phaseA[]
static
Initial value:
=
{
1,
1,
-1,
-1
}

Definition at line 9 of file stepper_dual_hbridge.cpp.

Referenced by DualHBridgeStepper::update().

◆ phaseB

const int8_t phaseB[]
static
Initial value:
=
{
-1,
1,
1,
-1
}

Definition at line 17 of file stepper_dual_hbridge.cpp.

Referenced by DualHBridgeStepper::update().

◆ phaseDutyCycleDivisor

constexpr float phaseDutyCycleDivisor = 1.0f / (100.0f * 100.0f)
staticconstexpr

Definition at line 34 of file stepper_dual_hbridge.cpp.

Referenced by DualHBridgeStepper::sleep(), and DualHBridgeStepper::step().

◆ tableSizeMask

constexpr int tableSizeMask = efi::size(microPhases) - 1
staticconstexpr

Go to the source code of this file.