TempSensor_NXP_Arduino 0.5.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 , T_LOW , T_HIGH } |
![]() | |
enum | reg_num { Temp , Conf , Thyst , Tos } |
![]() | |
enum | mode { COMPARATOR , INTERRUPT } |
Public Member Functions | |
P3T1755 (uint8_t i2c_address=(0x98 > > 1)) | |
P3T1755 (TwoWire &wire, uint8_t i2c_address=(0x90 > > 1)) | |
virtual | ~P3T1755 () |
virtual void | os_mode (mode flag) |
virtual bool | clear (void) |
![]() | |
P3T1085 (uint8_t i2c_address=(0x90 > > 1)) | |
P3T1085 (TwoWire &wire, uint8_t i2c_address=(0x90 > > 1)) | |
virtual | ~P3T1085 () |
virtual void | thresholds (float v0, float v1) |
virtual void | os_mode (mode flag) |
virtual bool | clear (void) |
![]() | |
LM75B (uint8_t i2c_address=(0x90 > > 1)) | |
LM75B (TwoWire &wire, uint8_t i2c_address=(0x90 > > 1)) | |
virtual | ~LM75B () |
virtual float | temp (void) |
virtual void | thresholds (float v0, float v1) |
virtual void | os_mode (mode flag) |
![]() | |
TempSensor (uint8_t i2c_address) | |
TempSensor (TwoWire &wire, uint8_t i2c_address) | |
virtual | ~TempSensor () |
virtual float | temp (void)=0 |
virtual float | read (void) |
P3T1755 class
About P3T1085: https://www.nxp.com/products/sensors/i3c-ic-digital-temp-sensors/i3c-ic-bus-0-5-c-accurate-digital-temperature-sensor:P3T1755DP
Definition at line 253 of file TempSensor.h.
enum P3T1755::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 257 of file TempSensor.h.
P3T1755::P3T1755 | ( | uint8_t | i2c_address = (0x98 >> 1) | ) |
Create a PCT2075 instance connected to specified I2C pins with specified address
i2c_address | I2C-bus address (default: (0x90>>1)) |
Definition at line 104 of file TempSensor.cpp.
P3T1755::P3T1755 | ( | TwoWire & | wire, |
uint8_t | i2c_address = (0x90 >> 1) |
||
) |
Create a PCT2075 instance connected to specified I2C pins with specified address
wire | TwoWire instance |
i2c_address | I2C-bus address (default: (0x90>>1)) |
Definition at line 108 of file TempSensor.cpp.
|
virtual |
Destructor of PCT2075
Definition at line 112 of file TempSensor.cpp.
|
virtual |
Clear ALERT (Clear interurpt)
Reimplemented from P3T1085.
Definition at line 121 of file TempSensor.cpp.
|
virtual |
Set OS operation mode
flag | use PCT2075::COMPARATOR or PCT2075::INTERRUPT values |
Reimplemented from P3T1085.
Definition at line 116 of file TempSensor.cpp.