thermo27 2.1.0.0
|
This file contains API for Thermo 27 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 | thermo27_t |
Thermo 27 Click context object. More... | |
struct | thermo27_cfg_t |
Thermo 27 Click configuration object. More... | |
Enumerations | |
enum | thermo27_return_value_t { THERMO27_OK = 0 , THERMO27_ERROR = -1 } |
Thermo 27 Click return value data. More... | |
Functions | |
void | thermo27_cfg_setup (thermo27_cfg_t *cfg) |
Thermo 27 configuration object setup function. | |
err_t | thermo27_init (thermo27_t *ctx, thermo27_cfg_t *cfg) |
Thermo 27 initialization function. | |
err_t | thermo27_default_cfg (thermo27_t *ctx) |
Thermo 27 default configuration function. | |
err_t | thermo27_generic_write (thermo27_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Thermo 27 I2C writing function. | |
err_t | thermo27_generic_read (thermo27_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Thermo 27 I2C reading function. | |
err_t | thermo27_write_register (thermo27_t *ctx, uint8_t reg, uint16_t data_in) |
Thermo 27 register writing function. | |
err_t | thermo27_read_register (thermo27_t *ctx, uint8_t reg, uint16_t *data_out) |
Thermo 27 register reading function. | |
err_t | thermo27_get_device_id (thermo27_t *ctx, uint16_t *device_id) |
Thermo 27 get device id function. | |
err_t | thermo27_sw_reset (thermo27_t *ctx) |
Thermo 27 software reset function. | |
err_t | thermo27_read_temp (thermo27_t *ctx, float *temp_out) |
Thermo 27 get read temperature function. | |
err_t | thermo27_enable_crc (thermo27_t *ctx) |
Thermo 27 enable CRC function. | |
err_t | thermo27_set_low_temp_limit (thermo27_t *ctx, float low_temp_limit) |
Thermo 27 set low temperature limit function. | |
err_t | thermo27_set_high_temp_limit (thermo27_t *ctx, float high_temp_limit) |
Thermo 27 set high temperature limit function. | |
err_t | thermo27_set_hysteresis (thermo27_t *ctx, uint8_t thigh_hyst, uint8_t tlow_hyst) |
Thermo 27 set hysteresis function. | |
err_t | thermo27_set_slew_limit (thermo27_t *ctx, float slew_limit) |
Thermo 27 set slew limit function. | |
err_t | thermo27_get_alert_reg (thermo27_t *ctx, uint8_t *register_flags) |
Thermo 27 get alert register staus function. | |
This file contains API for Thermo 27 Click Driver.