Avr::Mlx90614 decodes data from Melexis MLX90614 Infrared thermometer sensors.
More...
Avr::Mlx90614 decodes data from Melexis MLX90614 Infrared thermometer sensors.
◆ Avr::Mlx90614
Public Member Functions |
bool | isValid () const |
| Determines if the last sensor access was valid. More...
|
|
float | ambientTemperature () const |
| Retrieves the cached ambient temperature value. More...
|
|
float | objectTemperature () const |
| Retrieves the cached object temperature value. More...
|
|
bool | read () |
| Reads the ambient and object temperature from the sensor and updates the cached values. More...
|
|
◆ isValid()
bool Avr::Mlx90614::isValid |
( |
| ) |
const |
|
inline |
Determines if the last sensor access was valid.
- Returns
true
if the last sensor access was valid and temperature can be read, false
if an error occurred on the last sensor access.
◆ ambientTemperature()
float Avr::Mlx90614::ambientTemperature |
( |
| ) |
const |
|
inline |
Retrieves the cached ambient temperature value.
The ambient temperature value is updated by read.
- Returns
- The cached ambient temperature value.
◆ objectTemperature()
float Avr::Mlx90614::objectTemperature |
( |
| ) |
const |
|
inline |
Retrieves the cached object temperature value.
The object temperature value is updated by read.
- Returns
- The cached object temperature value.
◆ read()
bool Avr::Mlx90614::read |
( |
| ) |
|
|
inline |
Reads the ambient and object temperature from the sensor and updates the cached values.
- Returns
true
if the sensor data could be read, false
if an error occurred when accessing the sensor.