![]() |
Speeduino
|
#include "idle.h"#include "idleController_state.h"#include "elapsed_time.h"#include "maths.h"#include "preprocessor.h"#include "units.h"#include "globals.h"Macros | |
| #define | STEPPER_FORWARD 0 |
| #define | STEPPER_BACKWARD 1 |
| #define | STEPPER_POWER_WHEN_ACTIVE 0 |
| #define | STEPPER_LESS_AIR_DIRECTION() ((configPage9.iacStepperInv == 0) ? STEPPER_BACKWARD : STEPPER_FORWARD) |
| #define | STEPPER_MORE_AIR_DIRECTION() ((configPage9.iacStepperInv == 0) ? STEPPER_FORWARD : STEPPER_BACKWARD) |
Functions | |
| static void | enableIdle (void) |
| static void | initialiseIdleUpOutput (void) |
| static void | setIdlePidTunings (const config6 &page6) |
| static void | configureIdlePID (const config6 &page6, uint32_t minOutput, uint32_t maxOutput, uint16_t initialTarget) |
| void | initialiseIdle (bool forcehoming) |
| static uint8_t | checkForStepping (void) |
| static void | doStep (void) |
| static uint8_t | calculateIdleLoad (const config9 &page9, const StepperIdle &idleState) |
| static void | updateIdleStepAndLoad (statuses ¤t, const config9 &page9, StepperIdle &idleState) |
| static uint8_t | isStepperHomed (void) |
| void | idleControl (void) |
| void | disableIdle (void) |
| void | idleInterrupt (void) |
Variables | |
| TESTABLE_STATIC state_t | _idleState |
| TESTABLE_STATIC fnCurMicros_t | _idleCurMicros = µs |
| TESTABLE_CONSTEXPR table2D_u8_u8_10 iacPWMTable & | configPage6 |
| #define STEPPER_BACKWARD 1 |
| #define STEPPER_FORWARD 0 |
| #define STEPPER_LESS_AIR_DIRECTION | ( | ) | ((configPage9.iacStepperInv == 0) ? STEPPER_BACKWARD : STEPPER_FORWARD) |
| #define STEPPER_MORE_AIR_DIRECTION | ( | ) | ((configPage9.iacStepperInv == 0) ? STEPPER_FORWARD : STEPPER_BACKWARD) |
| #define STEPPER_POWER_WHEN_ACTIVE 0 |
|
inlinestatic |
|
inlinestatic |
|
static |
| void disableIdle | ( | void | ) |
|
inlinestatic |
|
inlinestatic |
| void idleControl | ( | void | ) |
| void idleInterrupt | ( | void | ) |
| void initialiseIdle | ( | bool | forcehoming | ) |
|
inlinestatic |
|
inlinestatic |
|
static |
|
inlinestatic |
| TESTABLE_STATIC fnCurMicros_t _idleCurMicros = µs |
| TESTABLE_STATIC state_t _idleState |
|
constexpr |