TempSensor_NXP_Arduino 0.2
Temperature sensor device operation sample code for Arduino
|
#include <TempSensor.h>
Public Types | |
enum | reg_num { Temp , Conf , T_LOW , T_HIGH } |
![]() | |
enum | reg_num { Temp , Conf , Thyst , Tos } |
![]() | |
enum | mode { COMPARATOR , INTERRUPT } |
Public Member Functions | |
P3T1085 (uint8_t i2c_address=(0x90 > > 1)) | |
~P3T1085 () | |
void | thresholds (float v0, float v1) |
void | os_mode (mode flag) |
bool | clear (void) |
![]() | |
LM75B (uint8_t i2c_address=(0x90 > > 1)) | |
~LM75B () | |
float | temp (void) |
void | thresholds (float v0, float v1) |
void | os_mode (mode flag) |
![]() | |
TempSensor (uint8_t i2c_address) | |
virtual | ~TempSensor () |
virtual float | temp (void) |
P3T1085 class
About P3T1085: https://www.nxp.jp/products/sensors/ic-digital-temperature-sensors/i3c-ic-bus-0-5-c-accurate-digital-temperature-sensor:P3T1085UK
Definition at line 161 of file TempSensor.h.
enum P3T1085::reg_num |
Name of the PCT2075 registers
Enumerator | |
---|---|
Temp | Temp register |
Conf | Conf register |
T_LOW | Thyst register |
T_HIGH | Tos registe |
Definition at line 165 of file TempSensor.h.
P3T1085::P3T1085 | ( | uint8_t | i2c_address = (0x90 >> 1) | ) |
Create a PCT2075 instance connected to specified I2C pins with specified address
i2c_address | I2C-bus address (default: (0x90>>1)) |
Definition at line 60 of file TempSensor.cpp.
P3T1085::~P3T1085 | ( | ) |
Destructor of PCT2075
Definition at line 66 of file TempSensor.cpp.
bool P3T1085::clear | ( | void | ) |
Clear ALERT (Clear interurpt)
Definition at line 84 of file TempSensor.cpp.
void P3T1085::os_mode | ( | mode | flag | ) |
Set OS operation mode
flag | use PCT2075::COMPARATOR or PCT2075::INTERRUPT values |
Definition at line 79 of file TempSensor.cpp.
void P3T1085::thresholds | ( | float | v0, |
float | v1 | ||
) |
Set Overtemperature shutdown threshold (Tos) and hysteresis (Thyst) in degree Celsius [°C]
This method takes 2 values and higher value will set as the threshold (Tos) and . another will be the hysteresis (Thyst)
v0 | a value in degree Celsius |
v1 | a value in degree Celsius |
Definition at line 70 of file TempSensor.cpp.