Instances of this class handle access to the TMP05/06 temperature sensors.
More...
#include <core/DspTmp0506.h>
List of all members.
Public Member Functions |
| tcDspTmp0506 (void *apAddress, int anLevel=gnAutoLevel) |
| This constructor is used to initialize a TMP05/06 device using the generic RAM Block interface.
|
| ~tcDspTmp0506 () |
| Default Destructor.
|
float | getTemperature (void) |
| This routine reads the 8 most recent temperature readings, averages them and computes a temperature (in deg-C).
|
| tcDspRamBlock (void *apAddress, int anLevel=gnAutoLevel) |
| This constructor is used to create the base class functionality required for cores that adhere to the MityDSP RAM Block interface.
|
virtual | ~tcDspRamBlock () |
| This destructor is used to close up and free tcDspRamBlock resources.
|
virtual bool | isDirty (unsigned int anId) |
| Determine whether a given input block is dirty.
|
virtual int | getBlockWidth (void) |
| Returns the width of the registers in the RAM block interface.
|
virtual void | writeBlock (unsigned int anId, unsigned int anValue) |
| Writes the value at the specified RAM Block ID.
|
virtual unsigned int | readBlock (unsigned int anId) |
| Reads the value at the specified RAM Block ID.
|
virtual void | interruptEnable (bool abEnable) |
| Enables or disables the Block Dirty interrupt.
|
virtual void | registerIsrHandler (tfIsrCallback afCallback) |
| Registers the user-supplied callback to be run whenever the Block Dirty interrupt occurs.
|
virtual void | registerIsrHandler (tfIsrCallbackWithArg afCallback, void *apUserArg=NULL) |
| Registers the user-supplied callback to be run whenever the Block Dirty interrupt occurs.
|
Detailed Description
Instances of this class handle access to the TMP05/06 temperature sensors.
- See also:
- tcDspTmp0506 Page
Constructor & Destructor Documentation
tcDspTmp0506::tcDspTmp0506 |
( |
void * |
apAddress, |
|
|
int |
anLevel = gnAutoLevel |
|
) |
| |
This constructor is used to initialize a TMP05/06 device using the generic RAM Block interface.
- Parameters:
-
[in] | apAddress | - Base Address of the TMP05/06 RAM Block interface |
[in] | anLevel | - Optional interrupt level parameter |
- Returns:
- None.
- See also:
- DspRamBlock.h
-
DspTmp0506.h
tcDspTmp0506::~tcDspTmp0506 |
( |
| ) |
|
Member Function Documentation
float tcDspTmp0506::getTemperature |
( |
void |
| ) |
|
This routine reads the 8 most recent temperature readings, averages them and computes a temperature (in deg-C).
- Returns:
- Temperature in deg-C (-1000 if no readings available).
- See also:
- DspTmp0506.h
Member Data Documentation
const int MityDSP::tcDspTmp0506::gnNumReadings = 8 |
|
static |