Seeed Grove ++  v0.0.1-2386
Linux C++ Library For Seeed Grove Devices
SG::TemperatureAndHumiditySensor Class Reference

Temperature and humidity sensor. More...

#include <sg_101020011_TemperatureAndHumiditySensor.hpp>

Inheritance diagram for SG::TemperatureAndHumiditySensor:
Collaboration diagram for SG::TemperatureAndHumiditySensor:

Public Member Functions

virtual ~TemperatureAndHumiditySensor (void)
 Destructor. More...
 
 TemperatureAndHumiditySensor (const std::string &n="")
 Constructor. More...
 
 TemperatureAndHumiditySensor (const TemperatureAndHumiditySensor &rhs)
 Copy constructor. More...
 
TemperatureAndHumiditySensoroperator= (const TemperatureAndHumiditySensor &rhs)
 Assignment. More...
 
virtual bool is_analog (void) const
 This is always true for GroveI2CDigital. More...
 
virtual bool is_digital (void) const
 This is always false for GroveI2CDigital. More...
 
virtual bool is_grove_uart (void) const
 This is always false for GroveI2C. More...
 
virtual bool is_grove_i2c (void) const
 This is always true for GroveI2C. More...
 
virtual bool is_grove_gpio (void) const
 This is always false for GroveI2C. More...
 
virtual uint32_t get_sku (void) const
 Return a guess as to the Seeed SKU number based on the grove type. More...
 
virtual std::string get_type_name (void) const
 Return a short text string representing the grove type. More...
 
virtual EGroveType get_type (void) const
 Return the grove type. More...
 
virtual std::string get_name (void) const
 Return the user-supplied name. More...
 
virtual std::string get_description (void) const
 Return a multi-word 1-line description of this object. More...
 
bool operator== (const TemperatureAndHumiditySensor &rhs) const
 Test object equality. More...
 
bool operator!= (const TemperatureAndHumiditySensor &rhs) const
 Test object equality. More...
 
bool operator== (const GroveBase &rhs) const
 Test object equality. More...
 
bool operator!= (const GroveBase &rhs) const
 Test object equality. More...
 

Public Attributes

EGroveType grove_type
 Grove type. More...
 
std::string grove_name
 User-supplied name. More...
 

Detailed Description

Temperature and humidity sensor.

This is an analog sensor which needs to be connected to the I2CADC.

Description Image
Chainable RGB LED connected to the Grove UART interface.
The light in this example was enabled from the command-line with "sudo seeedgrove chainable_rgb_led 255 128 0".
ChainableRGBLED_1.jpg
GROVE cable connects to the 'in' side of the chainable RGB LED.
ChainableRGBLED_2.jpg
See also
http://www.seeedstudio.com/wiki/Grove_-_Temperature_and_Humidity_Sensor
http://www.seeedstudio.com/depot/Grove-TempHumi-Sensor-p-745.html

Constructor & Destructor Documentation

◆ ~TemperatureAndHumiditySensor()

SG::TemperatureAndHumiditySensor::~TemperatureAndHumiditySensor ( void  )
virtual

Destructor.

◆ TemperatureAndHumiditySensor() [1/2]

SG::TemperatureAndHumiditySensor::TemperatureAndHumiditySensor ( const std::string &  n = "")

Constructor.

◆ TemperatureAndHumiditySensor() [2/2]

SG::TemperatureAndHumiditySensor::TemperatureAndHumiditySensor ( const TemperatureAndHumiditySensor rhs)

Copy constructor.

Member Function Documentation

◆ get_description()

◆ get_name()

virtual std::string SG::GroveBase::get_name ( void  ) const
inlinevirtualinherited

Return the user-supplied name.

References SG::GroveBase::get_description(), SG::GroveBase::grove_name, SG::GroveBase::is_grove_gpio(), SG::GroveBase::is_grove_i2c(), and SG::GroveBase::is_grove_uart().

Referenced by SG::GroveBase::get_description(), SG::GroveBase::operator=(), and SG::GroveBase::operator==().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_sku()

virtual uint32_t SG::GroveBase::get_sku ( void  ) const
inlinevirtualinherited

Return a guess as to the Seeed SKU number based on the grove type.

References SG::get_sku_from_grove_type(), and SG::GroveBase::grove_type.

Referenced by SG::GroveBase::get_description().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_type()

virtual EGroveType SG::GroveBase::get_type ( void  ) const
inlinevirtualinherited

Return the grove type.

References SG::GroveBase::grove_type.

Referenced by SG::GroveI2CDigital::get_address_from_type(), SG::GroveBase::operator=(), and SG::GroveBase::operator==().

Here is the caller graph for this function:

◆ get_type_name()

virtual std::string SG::GroveBase::get_type_name ( void  ) const
inlinevirtualinherited

Return a short text string representing the grove type.

References SG::GroveBase::grove_type, and SG::to_string().

Referenced by SG::GroveBase::get_description().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_analog()

virtual bool SG::GroveI2CAnalog::is_analog ( void  ) const
inlinevirtualinherited

This is always true for GroveI2CDigital.

Implements SG::GroveI2C.

◆ is_digital()

virtual bool SG::GroveI2CAnalog::is_digital ( void  ) const
inlinevirtualinherited

This is always false for GroveI2CDigital.

Implements SG::GroveI2C.

◆ is_grove_gpio()

virtual bool SG::GroveI2C::is_grove_gpio ( void  ) const
inlinevirtualinherited

This is always false for GroveI2C.

Implements SG::GroveBase.

References SG::GroveI2C::is_analog(), and SG::GroveI2C::is_digital().

Here is the call graph for this function:

◆ is_grove_i2c()

virtual bool SG::GroveI2C::is_grove_i2c ( void  ) const
inlinevirtualinherited

This is always true for GroveI2C.

Implements SG::GroveBase.

◆ is_grove_uart()

virtual bool SG::GroveI2C::is_grove_uart ( void  ) const
inlinevirtualinherited

This is always false for GroveI2C.

Implements SG::GroveBase.

◆ operator!=() [1/2]

bool SG::GroveBase::operator!= ( const GroveBase rhs) const
inlineinherited

Test object equality.

References SG::GroveBase::operator==().

Here is the call graph for this function:

◆ operator!=() [2/2]

bool SG::TemperatureAndHumiditySensor::operator!= ( const TemperatureAndHumiditySensor rhs) const
inline

Test object equality.

References operator==().

Here is the call graph for this function:

◆ operator=()

SG::TemperatureAndHumiditySensor & SG::TemperatureAndHumiditySensor::operator= ( const TemperatureAndHumiditySensor rhs)

Assignment.

References SG::GroveBase::operator=().

Here is the call graph for this function:

◆ operator==() [1/2]

bool SG::GroveBase::operator== ( const GroveBase rhs) const
inherited

Test object equality.

References SG::GroveBase::get_name(), and SG::GroveBase::get_type().

Referenced by SG::GroveBase::operator!=(), SG::Buzzer::operator==(), operator==(), SG::TemperatureSensor::operator==(), and SG::I2CADC::operator==().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator==() [2/2]

bool SG::TemperatureAndHumiditySensor::operator== ( const TemperatureAndHumiditySensor rhs) const

Test object equality.

References SG::GroveBase::operator==().

Referenced by operator!=().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ grove_name

std::string SG::GroveBase::grove_name
inherited

User-supplied name.

Referenced by SG::GroveBase::get_name(), and SG::GroveBase::operator=().

◆ grove_type


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