MityDSP Documentation Index

MityDSP::tcDspTmp0506 Class Reference

Instances of this class handle access to the TMP05/06 temperature sensors. More...

#include <core/DspTmp0506.h>

Inheritance diagram for MityDSP::tcDspTmp0506:
MityDSP::tcDspRamBlock

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).

Static Public Attributes

static const int gnNumReadings = 8

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 (  ) 

Default Destructor.


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]

  
Generated on Fri Sep 23 16:33:56 2011 for MityDSP Core by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.