Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

LOW_compTempSensor Class Reference

#include <LOW_compTempSensor.h>

Inheritance diagram for LOW_compTempSensor:

Inheritance graph
[legend]
Collaboration diagram for LOW_compTempSensor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 class_DERIVE_FROM_EXCEPTION (data_error, component_error)
 LOW_compTempSensor (const LOW_devDS1820 &inSensorDevice)
 ~LOW_compTempSensor ()
float getTemperature (const bool inDoConversion=true)
void recallAlarmLevels ()
void getAlarmLevels (int8_t &outLowBound, int8_t &outHighBound)
void setAlarmLevels (const int8_t inLowBound, const int8_t inHighBound, const bool inPermanent=true)
bool checkAlarm (const bool inRecalcTemp=true)
bool getIsExternalPowered () const

Protected Attributes

const LOW_devDS1820sensorDevice

Detailed Description

Todo:
Documentation of class.
Author:
Harald Roelle

Definition at line 32 of file LOW_compTempSensor.h.


Constructor & Destructor Documentation

LOW_compTempSensor::LOW_compTempSensor const LOW_devDS1820 inSensorDevice  ) 
 

Definition at line 28 of file LOW_compTempSensor.cpp.

References recallAlarmLevels().

LOW_compTempSensor::~LOW_compTempSensor  ) 
 

Definition at line 35 of file LOW_compTempSensor.cpp.


Member Function Documentation

bool LOW_compTempSensor::checkAlarm const bool  inRecalcTemp = true  ) 
 

Definition at line 102 of file LOW_compTempSensor.cpp.

References LOW_devDS1820::cmd_ConvertT(), sensorDevice, and LOW_device::verifyDevice().

LOW_compTempSensor::class_DERIVE_FROM_EXCEPTION data_error  ,
component_error 
 

void LOW_compTempSensor::getAlarmLevels int8_t &  outLowBound,
int8_t &  outHighBound
 

Definition at line 75 of file LOW_compTempSensor.cpp.

References LOW_devDS1820::cmd_ReadScratchpad(), sensorDevice, LOW_devDS1820::scratchpadDS1820_t::tH, and LOW_devDS1820::scratchpadDS1820_t::tL.

bool LOW_compTempSensor::getIsExternalPowered  )  const
 

Definition at line 111 of file LOW_compTempSensor.cpp.

References LOW_devDS1820::getIsExternalPowered(), and sensorDevice.

float LOW_compTempSensor::getTemperature const bool  inDoConversion = true  ) 
 

Definition at line 46 of file LOW_compTempSensor.cpp.

References LOW_devDS1820::cmd_ConvertT(), LOW_devDS1820::cmd_ReadScratchpad(), LOW_devDS1820::scratchpadDS1820_t::cntPerCelsius, LOW_devDS1820::scratchpadDS1820_t::cntRemain, sensorDevice, LOW_devDS1820::scratchpadDS1820_t::tempLSB, and LOW_devDS1820::scratchpadDS1820_t::tempMSB.

void LOW_compTempSensor::recallAlarmLevels  ) 
 

Definition at line 69 of file LOW_compTempSensor.cpp.

References LOW_devDS1820::cmd_RecallE2(), and sensorDevice.

Referenced by LOW_compTempSensor().

void LOW_compTempSensor::setAlarmLevels const int8_t  inLowBound,
const int8_t  inHighBound,
const bool  inPermanent = true
 

Definition at line 86 of file LOW_compTempSensor.cpp.

References LOW_devDS1820::cmd_CopyScratchpad(), LOW_devDS1820::cmd_WriteScratchpad(), and sensorDevice.


Member Data Documentation

const LOW_devDS1820& LOW_compTempSensor::sensorDevice [protected]
 

Definition at line 81 of file LOW_compTempSensor.h.

Referenced by checkAlarm(), getAlarmLevels(), getIsExternalPowered(), getTemperature(), recallAlarmLevels(), and setAlarmLevels().


The documentation for this class was generated from the following files:
Generated on Tue Feb 3 11:30:48 2004 for OneWireLibrary++ by doxygen 1.3.2