uStepper
Public Member Functions | List of all members
uStepperTemp Class Reference

Prototype of class for the temperature sensor. More...

#include <uStepper.h>

Public Member Functions

 uStepperTemp (void)
 Constructor. More...
 
float getTemp (void)
 Request a reading of current temperature. More...
 

Detailed Description

Prototype of class for the temperature sensor.

This class enables the user of the library to access the temperature sensor on the uStepper board. This class can be instantiated as a standalone object if this is the only feature on the uStepper required by the programmers specific application.

Definition at line 405 of file uStepper.h.

Constructor & Destructor Documentation

◆ uStepperTemp()

uStepperTemp::uStepperTemp ( void  )

Constructor.

This is the constructor of the temperature sensor class, and should be used in order to instantiate a temperature sensor object as follows:

Definition at line 660 of file uStepper.cpp.

Member Function Documentation

◆ getTemp()

float uStepperTemp::getTemp ( void  )

Request a reading of current temperature.

This method performs a reading of the current NTC temperature and returns this value. Since the NTC resistor is physically placed close to the stepper driver chip on the uStepper board, the temperature returned by this method will be close to the actual temperature of the driver chip.

Returns
Current NTC Temperature in degree Celsius

Definition at line 665 of file uStepper.cpp.


The documentation for this class was generated from the following files: