Repetier-Firmware 0.2
Repetier/Extruder.cpp File Reference
#include "Configuration.h"
#include "Reptier.h"
#include "pins_arduino.h"

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

Extrudercurrent_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 Documentation

#define NUMTEMPS_1   61
#define NUMTEMPS_2   21
#define NUMTEMPS_3   28
#define NUMTEMPS_4   20

Function Documentation

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 
)

Variable Documentation

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]
 All Data Structures Files Functions Variables Typedefs Friends Defines