thermo4 2.0.0.0
|
This file contains API for Thermo 4 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 | thermo4_t |
Click ctx object definition. More... | |
struct | thermo4_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | THERMO4_MAP_MIKROBUS(cfg, mikrobus) |
#define | THERMO4_RETVAL uint8_t |
#define | THERMO4_OK 0x00 |
#define | THERMO4_INIT_ERROR 0xFF |
Functions | |
void | thermo4_cfg_setup (thermo4_cfg_t *cfg) |
Config Object Initialization function. | |
THERMO4_RETVAL | thermo4_init (thermo4_t *ctx, thermo4_cfg_t *cfg) |
Initialization function. | |
void | thermo4_default_cfg (thermo4_t *ctx) |
Click Default Configuration function. | |
void | thermo4_write_byte (thermo4_t *ctx, uint8_t reg, uint8_t data_in) |
Byte write function. | |
void | thermo4_read_byte (thermo4_t *ctx, uint8_t reg, uint8_t *data_out) |
Byte read function. | |
void | thermo4_write_data (thermo4_t *ctx, uint8_t reg, uint16_t data_in) |
Data write function. | |
void | thermo4_read_data (thermo4_t *ctx, uint8_t reg, uint16_t *data_out) |
Data read function. | |
void | thermo4_write_cfg (thermo4_t *ctx, uint8_t wr_cfg) |
Write configuration function. | |
uint8_t | thermo4_read_cfg (thermo4_t *ctx) |
Read configuration function. | |
void | thermo4_shut_down (thermo4_t *ctx) |
Read configuration function. | |
void | thermo4_power_up (thermo4_t *ctx) |
Power up function. | |
void | thermo4_reset (thermo4_t *ctx) |
Reset function. | |
float | thermo4_read_temperature_c (thermo4_t *ctx) |
Read Temperature in Celsius function. | |
float | thermo4_read_temperature_f (thermo4_t *ctx) |
Read Temperature in Fahrenheit function. | |
float | thermo4_read_temperature_k (thermo4_t *ctx) |
Read Temperature in Kelvin function. | |
float | thermo4_read_over_temp_shut_down (thermo4_t *ctx) |
Read overtemperature shutdown threshold function. | |
float | thermo4_read_temp_hyst (thermo4_t *ctx) |
Read hysteresis function. | |
void | thermo4_write_over_temp_shut_down (thermo4_t *ctx, float input_val) |
Write overtemperature shutdown threshold function. | |
void | thermo4_write_temp_hyst (thermo4_t *ctx, float input_val) |
Write hysteresis function. | |
This file contains API for Thermo 4 Click driver.