Speeduino
Loading...
Searching...
No Matches
Classes | Macros | Enumerations | Functions | Variables
idle.h File Reference
#include "globals.h"
#include "table2d.h"
#include <BOARD_H>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  StepperIdle
 

Macros

#define IAC_ALGORITHM_NONE   0U
 
#define IAC_ALGORITHM_ONOFF   1U
 
#define IAC_ALGORITHM_PWM_OL   2U
 
#define IAC_ALGORITHM_PWM_CL   3U
 
#define IAC_ALGORITHM_STEP_OL   4U
 
#define IAC_ALGORITHM_STEP_CL   5U
 
#define IAC_ALGORITHM_PWM_OLCL   6U
 
#define IAC_ALGORITHM_STEP_OLCL   7U
 
#define IDLE_PIN_LOW()   *idle_pin_port &= ~(idle_pin_mask)
 
#define IDLE_PIN_HIGH()   *idle_pin_port |= (idle_pin_mask)
 
#define IDLE2_PIN_LOW()   *idle2_pin_port &= ~(idle2_pin_mask)
 
#define IDLE2_PIN_HIGH()   *idle2_pin_port |= (idle2_pin_mask)
 
#define STEPPER_FORWARD   0
 
#define STEPPER_BACKWARD   1
 
#define STEPPER_POWER_WHEN_ACTIVE   0
 
#define IDLE_TABLE_SIZE   10
 

Enumerations

enum  StepperStatus { SOFF , STEPPING , COOLING }
 

Functions

void initialiseIdle (bool forcehoming)
 
void idleControl (void)
 
void initialiseIdleUpOutput (void)
 
void disableIdle (void)
 
void idleInterrupt (void)
 

Variables

uint16_t idle_pwm_max_count
 
long FeedForwardTerm
 

Macro Definition Documentation

◆ IAC_ALGORITHM_NONE

#define IAC_ALGORITHM_NONE   0U

◆ IAC_ALGORITHM_ONOFF

#define IAC_ALGORITHM_ONOFF   1U

◆ IAC_ALGORITHM_PWM_CL

#define IAC_ALGORITHM_PWM_CL   3U

◆ IAC_ALGORITHM_PWM_OL

#define IAC_ALGORITHM_PWM_OL   2U

◆ IAC_ALGORITHM_PWM_OLCL

#define IAC_ALGORITHM_PWM_OLCL   6U

◆ IAC_ALGORITHM_STEP_CL

#define IAC_ALGORITHM_STEP_CL   5U

◆ IAC_ALGORITHM_STEP_OL

#define IAC_ALGORITHM_STEP_OL   4U

◆ IAC_ALGORITHM_STEP_OLCL

#define IAC_ALGORITHM_STEP_OLCL   7U

◆ IDLE2_PIN_HIGH

#define IDLE2_PIN_HIGH ( )    *idle2_pin_port |= (idle2_pin_mask)

◆ IDLE2_PIN_LOW

#define IDLE2_PIN_LOW ( )    *idle2_pin_port &= ~(idle2_pin_mask)

◆ IDLE_PIN_HIGH

#define IDLE_PIN_HIGH ( )    *idle_pin_port |= (idle_pin_mask)

◆ IDLE_PIN_LOW

#define IDLE_PIN_LOW ( )    *idle_pin_port &= ~(idle_pin_mask)

◆ IDLE_TABLE_SIZE

#define IDLE_TABLE_SIZE   10

◆ STEPPER_BACKWARD

#define STEPPER_BACKWARD   1

◆ STEPPER_FORWARD

#define STEPPER_FORWARD   0

◆ STEPPER_POWER_WHEN_ACTIVE

#define STEPPER_POWER_WHEN_ACTIVE   0

Enumeration Type Documentation

◆ StepperStatus

Enumerator
SOFF 
STEPPING 
COOLING 

Function Documentation

◆ disableIdle()

void disableIdle ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ idleControl()

void idleControl ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ idleInterrupt()

void idleInterrupt ( void  )
Here is the call graph for this function:

◆ initialiseIdle()

void initialiseIdle ( bool  forcehoming)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialiseIdleUpOutput()

void initialiseIdleUpOutput ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ FeedForwardTerm

long FeedForwardTerm
extern

◆ idle_pwm_max_count

uint16_t idle_pwm_max_count
extern