Defines | Enumerations | Functions

extruder/temp.h File Reference

pin definitions and I/O macros More...

#include "config.h"
#include <stdint.h>

Go to the source code of this file.

Defines

#define DEFINE_TEMP_SENSOR(name, type, pin)   TEMP_SENSOR_ ## name,
#define temp_tick   temp_sensor_tick

Enumerations

enum  temp_sensor_t
enum  temp_type_t {
  TT_THERMISTOR, TT_MAX6675, TT_AD595, TT_PT100,
  TT_INTERCOM, TT_DUMMY, TT_THERMISTOR, TT_MAX6675,
  TT_AD595, TT_PT100, TT_INTERCOM, TT_DUMMY
}

Functions

void temp_init (void)
 set up temp sensors. Currently only the 'intercom' sensor needs initialisation.
void temp_sensor_tick (void)
 called every 10ms from clock.c - check all temp sensors that are ready for checking
uint8_t temp_achieved (void)
 report whether all temp sensors are reading their target temperatures used for M109 and friends
void temp_set (temp_sensor_t index, uint16_t temperature)
 specify a target temperature
uint16_t temp_get (temp_sensor_t index)
 return most recent reading for a sensor
void temp_print (temp_sensor_t index)
 send temperatures to host

Detailed Description

pin definitions and I/O macros

why double up on these macros? see http://gcc.gnu.org/onlinedocs/cpp/Stringification.html


Function Documentation

uint16_t temp_get ( temp_sensor_t  index )

return most recent reading for a sensor

Parameters:
indexsensor to read
void temp_print ( temp_sensor_t  index )

send temperatures to host

Parameters:
indexsensor value to send

Referenced by process_gcode_command().

void temp_set ( temp_sensor_t  index,
uint16_t  temperature 
)

specify a target temperature

Parameters:
indexsensor to set a target for
temperaturetarget temperature to aim for

Referenced by process_gcode_command().

 All Data Structures Files Functions Variables Defines