Public Member Functions | Private Member Functions | Private Attributes | List of all members
DHT Class Reference

#include <DHT.h>

Public Member Functions

float CalcdewPoint (float const celsius, float const humidity)
 
float CalcdewPointFast (float const celsius, float const humidity)
 
 DHT (PinName pin, eType DHTtype)
 
eError readData (void)
 
float ReadHumidity (void)
 
float ReadTemperature (eScale const Scale)
 
 ~DHT ()
 

Private Member Functions

float CalcHumidity ()
 
float CalcTemperature ()
 
float ConvertCelciustoFarenheit (float const)
 
float ConvertCelciustoKelvin (float const)
 
eError stall (DigitalInOut &io, int const level, int const max_time)
 

Private Attributes

eType _DHTtype
 
bool _firsttime
 
float _lastHumidity
 
time_t _lastReadTime
 
float _lastTemperature
 
PinName _pin
 
uint8_t DHT_data [5]
 

Detailed Description

Definition at line 73 of file DHT.h.

Constructor & Destructor Documentation

DHT::DHT ( PinName  pin,
eType  DHTtype 
)

Definition at line 37 of file DHT.cpp.

DHT::~DHT ( )

Definition at line 44 of file DHT.cpp.

Member Function Documentation

float DHT::CalcdewPoint ( float const  celsius,
float const  humidity 
)

Definition at line 191 of file DHT.cpp.

float DHT::CalcdewPointFast ( float const  celsius,
float const  humidity 
)

Definition at line 207 of file DHT.cpp.

float DHT::CalcHumidity ( )
private

Definition at line 226 of file DHT.cpp.

float DHT::CalcTemperature ( )
private

Definition at line 153 of file DHT.cpp.

float DHT::ConvertCelciustoFarenheit ( float const  celsius)
private

Definition at line 179 of file DHT.cpp.

float DHT::ConvertCelciustoKelvin ( float const  celsius)
private

Definition at line 184 of file DHT.cpp.

eError DHT::readData ( void  )

Definition at line 64 of file DHT.cpp.

float DHT::ReadHumidity ( void  )

Definition at line 174 of file DHT.cpp.

float DHT::ReadTemperature ( eScale const  Scale)

Definition at line 216 of file DHT.cpp.

eError DHT::stall ( DigitalInOut &  io,
int const  level,
int const  max_time 
)
private

Definition at line 49 of file DHT.cpp.

Member Data Documentation

eType DHT::_DHTtype
private

Definition at line 92 of file DHT.h.

bool DHT::_firsttime
private

Definition at line 91 of file DHT.h.

float DHT::_lastHumidity
private

Definition at line 89 of file DHT.h.

time_t DHT::_lastReadTime
private

Definition at line 87 of file DHT.h.

float DHT::_lastTemperature
private

Definition at line 88 of file DHT.h.

PinName DHT::_pin
private

Definition at line 90 of file DHT.h.

uint8_t DHT::DHT_data[5]
private

Definition at line 93 of file DHT.h.


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


rosserial_mbed
Author(s): Gary Servin
autogenerated on Mon Jun 10 2019 14:53:26