MAXREFDES143#: DeepCover Embedded Security in IoT Authenticated Sensing & Notification

Dependencies:   MaximInterface mbed

Embed: (wiki syntax)

« Back to documentation index

DS7505 Class Reference

DS7505 Class Reference

Interface to the DS7505 temperature sensor. More...

#include <DS7505.hpp>

Public Member Functions

 DS7505 (mbed::I2C &I2C_interface, uint8_t I2C_address)
Result set_resolution (uint8_t resolution)
 Set the resolution for temperature conversions.
Result read_current_temp (int16_t &temperature) const
 Reads the current temperature with an exponent of 10^-2.
Result read_current_temp (double &temperature) const
 Reads the current temperature as a floating point value.
Result read_current_temp (int8_t &temperature) const
 Reads the current temperature as an integer value.

Detailed Description

Interface to the DS7505 temperature sensor.

Definition at line 41 of file DS7505.hpp.


Constructor & Destructor Documentation

DS7505 ( mbed::I2C &  I2C_interface,
uint8_t  I2C_address 
)
Parameters:
I2C_interfaceA configured I2C interface to use for communication.
I2C_addressDevice bus address in mbed format.

Definition at line 40 of file DS7505.cpp.


Member Function Documentation

DS7505::Result read_current_temp ( int16_t &  temperature ) const

Reads the current temperature with an exponent of 10^-2.

Note:
Compatible with Bluetooth characteristic: org.bluetooth.characteristic.temperature.

Definition at line 197 of file DS7505.cpp.

DS7505::Result read_current_temp ( int8_t &  temperature ) const

Reads the current temperature as an integer value.

Definition at line 237 of file DS7505.cpp.

DS7505::Result read_current_temp ( double &  temperature ) const

Reads the current temperature as a floating point value.

Definition at line 217 of file DS7505.cpp.

DS7505::Result set_resolution ( uint8_t  resolution )

Set the resolution for temperature conversions.

Parameters:
resolutionNumber of decimal bit from 1 to 4.

Definition at line 127 of file DS7505.cpp.