![]() |
Repetier-Firmware 0.2
|
Defines | |
#define | NUMTEMPS_1 61 |
#define | NUMTEMPS_2 21 |
#define | NUMTEMPS_3 28 |
#define | NUMTEMPS_4 20 |
Functions | |
ISR (ADC_vect) | |
void | initExtruder () |
Initalizes all extruder. | |
void | extruder_select (byte ext_num) |
void | extruder_set_temperature (int temp_celsius) |
int | extruder_get_temperature () |
void | heated_bed_set_temperature (int temp_celsius) |
int | heated_bed_get_temperature () |
void | extruder_disable () |
Disable stepper motor of current extruder. | |
int | read_raw_temperature (byte type, byte pin) |
int | conv_raw_temp (byte type, int raw_temp) |
int | conv_temp_raw (byte type, int temp) |
void | monitor_temp (unsigned long time, int current, int target, int output) |
void | manage_temperatures (bool critical) |
Variables | |
Extruder * | current_extruder |
Extruder | extruder [NUM_EXTRUDER] |
byte | manage_extruder = 0 |
Extruder number, we are looking at. 1+NUM_EXTRUDER is heated bed. | |
int | manage_sum = 0 |
Used for avagering temperature readings. | |
byte | manage_step = 0 |
Processing step of temperature management. | |
byte | manage_pin = 0 |
Used sensor pin. | |
long | manage_lastcall = 0 |
Time of last call. So we can limit calls to desired frequency. | |
byte | manage_monitor = 255 |
Temp. we want to monitor with our host. 1+NUM_EXTRUDER is heated bed. | |
static uint8 osAnalogInputChannels[] | PROGMEM = ANALOG_INPUT_CHANNELS |
static uint8 | osAnalogInputCounter [ANALOG_INPUTS] |
static uint | osAnalogInputBuildup [ANALOG_INPUTS] |
static uint8 | osAnalogInputPos = 0 |
volatile uint | osAnalogInputValues [ANALOG_INPUTS] |
#define NUMTEMPS_1 61 |
#define NUMTEMPS_2 21 |
#define NUMTEMPS_3 28 |
#define NUMTEMPS_4 20 |
int conv_raw_temp | ( | byte | type, |
int | raw_temp | ||
) |
int conv_temp_raw | ( | byte | type, |
int | temp | ||
) |
void extruder_disable | ( | ) |
Disable stepper motor of current extruder.
int extruder_get_temperature | ( | ) |
void extruder_select | ( | byte | ext_num | ) |
void extruder_set_temperature | ( | int | temp_celsius | ) |
int heated_bed_get_temperature | ( | ) |
void heated_bed_set_temperature | ( | int | temp_celsius | ) |
void initExtruder | ( | ) |
Initalizes all extruder.
Updates the pin configuration needed for the extruder and activates extruder 0. Starts a interrupt based analog input reader, which is used by simple thermistors for temperature reading.
ISR | ( | ADC_vect | ) |
void manage_temperatures | ( | bool | critical | ) |
void monitor_temp | ( | unsigned long | time, |
int | current, | ||
int | target, | ||
int | output | ||
) |
int read_raw_temperature | ( | byte | type, |
byte | pin | ||
) |
{ {0,EXT0_X_OFFSET,EXT0_Y_OFFSET,EXT0_STEPS_PER_MM,EXT0_TEMPSENSOR_TYPE,EXT0_TEMPSENSOR_PIN,EXT0_HEATER_PIN,EXT0_ENABLE_PIN,EXT0_DIR_PIN,EXT0_STEP_PIN,EXT0_ENABLE_ON,EXT0_INVERSE, EXT0_MAX_FEEDRATE,EXT0_MAX_ACCELERATION,EXT0_MAX_START_FEEDRATE,0,0,0,0,0,0,EXT0_HEAT_MANAGER,EXT0_WATCHPERIOD,EXT0_ADVANCE_K ,0,EXT0_PID_INTEGRAL_DRIVE_MAX,EXT0_PID_PGAIN,EXT0_PID_IGAIN,EXT0_PID_DGAIN,EXT0_PID_MAX } }
byte manage_extruder = 0 |
Extruder number, we are looking at. 1+NUM_EXTRUDER is heated bed.
long manage_lastcall = 0 |
Time of last call. So we can limit calls to desired frequency.
byte manage_monitor = 255 |
Temp. we want to monitor with our host. 1+NUM_EXTRUDER is heated bed.
byte manage_pin = 0 |
Used sensor pin.
byte manage_step = 0 |
Processing step of temperature management.
int manage_sum = 0 |
Used for avagering temperature readings.
uint osAnalogInputBuildup[ANALOG_INPUTS] [static] |
uint8 osAnalogInputCounter[ANALOG_INPUTS] [static] |
uint8 osAnalogInputPos = 0 [static] |
volatile uint osAnalogInputValues[ANALOG_INPUTS] |
const byte temptables_num [7] PROGMEM = ANALOG_INPUT_CHANNELS [static] |