|
thermo14 2.2.0
|
This file contains API for Thermo 14 Click driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_i2c_master.h"Go to the source code of this file.
Data Structures | |
| struct | thermo14_t |
| Click ctx object definition. More... | |
| struct | thermo14_cfg_t |
| Click configuration structure definition. More... | |
Macros | |
| #define | THERMO14_MAP_MIKROBUS(cfg, mikrobus) |
| #define | THERMO14_RETVAL uint8_t |
| #define | THERMO14_OK 0x00 |
| #define | THERMO14_INIT_ERROR 0xFF |
| #define | THERMO14_I2C_ADR_VDD 0x38 |
| #define | THERMO14_I2C_ADR_GND 0x3F |
| #define | THERMO14_ARA_ADR 0x0C |
| #define | THERMO14_WHOAMI 0x01 |
| #define | THERMO14_TEMP_H_LIMIT 0x02 |
| #define | THERMO14_TEMP_L_LIMIT 0x03 |
| #define | THERMO14_CTL 0x04 |
| #define | THERMO14_STAT 0x05 |
| #define | THERMO14_TEMP_L_OUT 0x06 |
| #define | THERMO14_TEMP_H_OUT 0x07 |
| #define | THERMO14_SW_RST 0x0C |
| #define | THERMO14_CTL_LOW_ODR_ST 0x80 |
| #define | THERMO14_CTL_BDU 0x40 |
| #define | THERMO14_CTL_AVG_8 0x00 |
| #define | THERMO14_CTL_AVG_4 0x10 |
| #define | THERMO14_CTL_AVG_2 0x20 |
| #define | THERMO14_CTL_AVG_1 0x30 |
| #define | THERMO14_CTL_IF_ADR_INC 0x08 |
| #define | THERMO14_CTL_FREERUN 0x04 |
| #define | THERMO14_CTL_TIME_OUT_DIS 0x02 |
| #define | THERMO14_CTL_ONE_SHOT 0x01 |
| #define | THERMO14_SW_RST_RST_CMD 0x02 |
| #define | THERMO14_SW_RST_LOW_ODR_EN 0x40 |
Functions | |
| void | thermo14_cfg_setup (thermo14_cfg_t *cfg) |
| Config Object Initialization function. | |
| THERMO14_RETVAL | thermo14_init (thermo14_t *ctx, thermo14_cfg_t *cfg) |
| Initialization function. | |
| void | thermo14_generic_write (thermo14_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
| Generic write function. | |
| void | thermo14_generic_read (thermo14_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
| Generic read function. | |
| void | thermo14_default_cfg (thermo14_t *ctx) |
| void | thermo14_reset (thermo14_t *ctx) |
| Reset function. | |
| void | thermo14_sensor_enable (thermo14_t *ctx) |
| Sensor enable function. | |
| int16_t | thermo14_temp_raw_get (thermo14_t *ctx) |
| Get Raw Temperature Data function. | |
| float | thermo14_raw_to_celsius (thermo14_t *ctx, int16_t temp_raw) |
| Temperature Calculation function. ````````````````. | |
| float | thermo14_get_temperature (thermo14_t *ctx) |
| Get Temperature in Centigrade function. | |
| uint8_t | thermo14_get_int (thermo14_t *ctx) |
| Get Interrupt state function. | |
| void | thermo14_low_temp_trsh (thermo14_t *ctx, float trsh_val) |
| Set the low temperature threshold value function. | |
| void | thermo14_high_temp_trsh (thermo14_t *ctx, float trsh_val) |
| Set the high temperature threshold value function. | |
This file contains API for Thermo 14 Click driver.