D6T MEMS Thermal Sensors (Omron)
D6T_44L_06 Class Reference
D6T MEMS Thermal Sensors by OMRON Chip: D6T_44L_06. More...
#include <D6T_44L_06.h>
Public Member Functions | |
D6T_44L_06 (PinName p_sda, PinName p_scl) | |
Configure data pin (with other devices on I2C line) | |
D6T_44L_06 (I2C &p_i2c) | |
Configure data pin (with other devices on I2C line) | |
bool | read_16bit_data (int16_t *dt) |
Read a float type data from acc. | |
bool | read_float_data (float *dt) |
Read a float type data from sensor. | |
float | read_chip_temp (void) |
Read sensor chip temperatue. |
Detailed Description
D6T MEMS Thermal Sensors by OMRON Chip: D6T_44L_06.
#include "mbed.h" // I2C Communication D6T_44L_06 tmp_16array(D14, D15); // SDA, SCL int main() { float f[16]; while(true){ tmp_16array.read_data(f); ThisThread::sleep_for(300); // minimum updating cycle } }
Definition at line 52 of file D6T_44L_06.h.
Constructor & Destructor Documentation
D6T_44L_06 | ( | PinName | p_sda, |
PinName | p_scl | ||
) |
Configure data pin (with other devices on I2C line)
- Parameters:
-
I2C PinName SDA &SDL
Definition at line 35 of file D6T_44L_06.cpp.
D6T_44L_06 | ( | I2C & | p_i2c ) |
Configure data pin (with other devices on I2C line)
- Parameters:
-
I2C previous definition
Definition at line 41 of file D6T_44L_06.cpp.
Member Function Documentation
bool read_16bit_data | ( | int16_t * | dt ) |
Read a float type data from acc.
- Parameters:
-
float type of three arry's address, e.g. 16bit data dt_i[16];
- Returns:
- CRC check result / true=passed, false=failed
Definition at line 63 of file D6T_44L_06.cpp.
float read_chip_temp | ( | void | ) |
Read sensor chip temperatue.
- Parameters:
-
none
- Returns:
- temperature
Definition at line 73 of file D6T_44L_06.cpp.
bool read_float_data | ( | float * | dt ) |
Read a float type data from sensor.
- Parameters:
-
float type of three arry's address, e.g. float dt_f[16];
- Returns:
- CRC check result / true=passed, false=failed
Definition at line 53 of file D6T_44L_06.cpp.
Generated on Tue Jul 12 2022 17:54:46 by 1.7.2