Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MaximInterface mbed
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_interface A configured I2C interface to use for communication. I2C_address Device 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:
-
resolution Number of decimal bit from 1 to 4.
Definition at line 127 of file DS7505.cpp.
Generated on Wed Jul 13 2022 21:31:03 by
1.7.2
MAXREFDES143#: DeepCover Embedded Security in IoT Authenticated Sensing & Notification