MAX30205 Human Body Temperature Sensor
MAX30205 Class Reference
MAX30205 Human Body Temperature Sensor. More...
#include <MAX30205.h>
Public Member Functions | |
| MAX30205 (PinName sda, PinName scl, int addr) | |
| MAX30205 constructor. | |
| ~MAX30205 () | |
| MAX30205 destructor. | |
| uint16_t | getTemp (void) |
| Get temperature. | |
| uint8_t | getConf (void) |
| Get configuration register. | |
| void | setConf (uint8_t conf) |
| Set configuration register. | |
| uint16_t | getThyst (void) |
| Get Thyst (lower limit threshold) | |
| void | setThyst (uint16_t thyst) |
| Set Thyst. | |
| uint16_t | getTos (void) |
| Get Tos (upper limit threshold) | |
| void | setTos (uint16_t tos) |
| Set Tos. | |
Detailed Description
MAX30205 Human Body Temperature Sensor.
Definition at line 8 of file MAX30205.h.
Constructor & Destructor Documentation
| MAX30205 | ( | PinName | sda, |
| PinName | scl, | ||
| int | addr | ||
| ) |
MAX30205 constructor.
- Parameters:
-
sda SDA pin sdl SCL pin addr addr of the I2C peripheral
Definition at line 18 of file MAX30205.cpp.
| ~MAX30205 | ( | ) |
MAX30205 destructor.
Definition at line 23 of file MAX30205.cpp.
Member Function Documentation
| uint8_t getConf | ( | void | ) |
Get configuration register.
- Parameters:
-
(none)
- Returns:
- uint8_t configuration register value
- Note:
- bit[7] ONE-SHOT
- bit[6] /TIMEOUT I2C but timeout 0: enable 1: disable
- bit[5] DATAFORMAT 0: normal (0 - +50) 1: extended (64c + 2's comp)
- bit[4] FAULT_QUEUE[1] determine the number of faults necessary to
- bit[3] FAULT_QUEUE[0] trigger an OS condition.
- bit[2] OS_POLARITY 0: OS output polarity active low 1: active high
- bit[1] /COMPARATOR/INTERRUPT 0: comparator ode 1: interrupt mode
- bit[0] SHUTDOWN 0: exit from shutdown 1: enter shutdown mode
Definition at line 36 of file MAX30205.cpp.
| uint16_t getTemp | ( | void | ) |
Get temperature.
- Parameters:
-
(none)
- Returns:
- uint16_t temperature value
- Note:
- bit[15] Sign
- bit[14] 64 C
- bit[13] 32 C
- bit[12] 16 C
- bit[11] 8 C
- bit[10] 4 C
- bit[ 9] 2 C
- bit[ 8] 1 C
- bit[ 7] 0.5 C
- bit[ 6] 0.25 C
- bit[ 5] 0.125 C
- bit[ 4] 0.0625 C
- bit[ 3] 0.03125 C
- bit[ 2] 0.015625 C
- bit[ 1] 0.0078125 C
- bit[ 0] 0.00390625 C
- in normal format Temp_float = (float)Temp_u16 / 256.0 ;
Definition at line 27 of file MAX30205.cpp.
| uint16_t getThyst | ( | void | ) |
Get Thyst (lower limit threshold)
- Parameters:
-
(none)
- Returns:
- uint16_t Thyst value
Definition at line 52 of file MAX30205.cpp.
| uint16_t getTos | ( | void | ) |
Get Tos (upper limit threshold)
- Parameters:
-
(none)
- Returns:
- uint16_t Tos
Definition at line 70 of file MAX30205.cpp.
| void setConf | ( | uint8_t | conf ) |
Set configuration register.
- Parameters:
-
uint8_t register value
- Returns:
- (none)
Definition at line 43 of file MAX30205.cpp.
| void setThyst | ( | uint16_t | thyst ) |
| void setTos | ( | uint16_t | tos ) |
Generated on Tue Jul 12 2022 15:39:19 by
1.7.2