yarf 0.1
Yet Another RepRap Firmware
Functions
src/temperature/temperature.h File Reference

The temperature component manages the temperature of the nozzle and the printbed. More...

#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Functions

void temp_init (void)
 Initializes the temperature component.
void temp_set_nozzle_target (float c)
 Sets the target temperature of the nozzle.
float temp_get_nozzle_temp (void)
 Returns the last measured temperature of the nozzle in degrees Celsius.
uint8_t temp_get_nozzle_power (void)
 Returns the relative amount of power applied to the nozzle's heater.
bool temp_nozzle_temperature_reached (void)
 Returns whether the nozzle's target temperature has been reached.
void temp_nozzle_temperature_wait (void)
 Blocks until the nozzle's target temperature has been reached.
void temp_set_printbed_target (float c)
 Sets the target temperature of the printbed.
float temp_get_printbed_temp (void)
 Returns the last measured temperature of the printbed in degrees Celsius.
uint8_t temp_get_printbed_power (void)
 Returns the relative amount of power applied to the printbed's heater.
bool temp_printbed_temperature_reached (void)
 Returns whether the printbed's target temperature has been reached.
void temp_printbed_temperature_wait (void)
 Blocks until the printbed's target temperature has been reached.

Detailed Description

The temperature component manages the temperature of the nozzle and the printbed.

Author:
Pieter Agten (pieter.agten@gmail.com)
Date:
9 okt 2011

Definition in file temperature.h.


Function Documentation

uint8_t temp_get_nozzle_power ( void  )

Returns the relative amount of power applied to the nozzle's heater.

Returns:
The relative amount of power applied to the nozzle's heater (0 to 255).

Definition at line 323 of file temperature.c.

float temp_get_nozzle_temp ( void  )

Returns the last measured temperature of the nozzle in degrees Celsius.

Returns:
The last measured temperature of the nozzle in degrees Celsius.

Definition at line 309 of file temperature.c.

uint8_t temp_get_printbed_power ( void  )

Returns the relative amount of power applied to the printbed's heater.

Returns:
The relative amount of power applied to the printbed's heater (0 to 255).

Definition at line 357 of file temperature.c.

float temp_get_printbed_temp ( void  )

Returns the last measured temperature of the printbed in degrees Celsius.

Returns:
The last measured temperature of the printbed in degrees Celsius.

Definition at line 350 of file temperature.c.

void temp_init ( void  )

Initializes the temperature component.

The nozzle and printbed target temperatures are set to INITIAL_TARGET_TEMP_C.

Definition at line 280 of file temperature.c.

bool temp_nozzle_temperature_reached ( void  )

Returns whether the nozzle's target temperature has been reached.

Returns:
True if the nozzle's target temperature has been reached and false otherwise.

Definition at line 329 of file temperature.c.

bool temp_printbed_temperature_reached ( void  )

Returns whether the printbed's target temperature has been reached.

Returns:
True if the printbed's target temperature has been reached and false otherwise.

Definition at line 363 of file temperature.c.

void temp_set_nozzle_target ( float  c)

Sets the target temperature of the nozzle.

Parameters:
cthe target temperature of the nozzle in degrees Celsius.

Definition at line 302 of file temperature.c.

void temp_set_printbed_target ( float  c)

Sets the target temperature of the printbed.

Parameters:
cthe target temperature of the printbed in degrees Celsius.

Definition at line 343 of file temperature.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines