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.
ADT7310 Class Reference
Analog Devices ADT7310 temperature sensor. More...
#include <ADT7310.h>
| Public Member Functions | |
| ADT7310 (PinName CS=SPI_CS, PinName MOSI=SPI_MOSI, PinName MISO=SPI_MISO, PinName SCK=SPI_SCK) | |
| ADT7310 class. | |
| void | reset () | 
| resets the ADT7310 | |
| uint8_t | read_status () | 
| reads status register of the temperature sensor | |
| void | write_config (uint8_t data) | 
| writes configuration register of the temperature sensor | |
| void | start_single_conversion () | 
| issues a conversion to the temperature sensor | |
| uint8_t | read_config () | 
| reads configuration register | |
| uint16_t | read_temp () | 
| reads the temperature | |
| void | write_temp_setpoint (uint8_t setpoint, uint16_t data) | 
| writes temperature setpoints | |
Detailed Description
Analog Devices ADT7310 temperature sensor.
Definition at line 10 of file ADT7310.h.
Constructor & Destructor Documentation
| ADT7310 | ( | PinName | CS = SPI_CS, | 
| PinName | MOSI = SPI_MOSI, | ||
| PinName | MISO = SPI_MISO, | ||
| PinName | SCK = SPI_SCK | ||
| ) | 
ADT7310 class.
- Parameters:
- 
  CS - chipselect pin MOSI - MOSI pin MISO - MISO pin SCK - Clock pin 
Definition at line 4 of file ADT7310.cpp.
Member Function Documentation
| uint8_t read_config | ( | ) | 
reads configuration register
- Returns:
- configuration register value
Definition at line 40 of file ADT7310.cpp.
| uint8_t read_status | ( | void | ) | 
reads status register of the temperature sensor
- Returns:
- value of the status register
Definition at line 19 of file ADT7310.cpp.
| uint16_t read_temp | ( | ) | 
| void reset | ( | void | ) | 
resets the ADT7310
Definition at line 10 of file ADT7310.cpp.
| void start_single_conversion | ( | ) | 
issues a conversion to the temperature sensor
Definition at line 26 of file ADT7310.cpp.
| void write_config | ( | uint8_t | data ) | 
writes configuration register of the temperature sensor
- Parameters:
- 
  data - data to be written 
Definition at line 34 of file ADT7310.cpp.
| void write_temp_setpoint | ( | uint8_t | setpoint, | 
| uint16_t | data | ||
| ) | 
writes temperature setpoints
- Parameters:
- 
  setpoint - setpoint register data - data to be written to the setpoint register 
Definition at line 52 of file ADT7310.cpp.
Generated on Tue Jul 12 2022 17:59:52 by
 1.7.2
 1.7.2 
     CN0357 - Toxic gas measurement
            CN0357 - Toxic gas measurement
         CN0216 - Weight Scale
            CN0216 - Weight Scale