surfacetemp 2.0.0.0
|
This file contains API for Surface temp 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 | surfacetemp_t |
Click ctx object definition. More... | |
struct | surfacetemp_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | surfacetemp_cfg_setup (surfacetemp_cfg_t *cfg) |
Config Object Initialization function. | |
SURFACETEMP_RETVAL | surfacetemp_init (surfacetemp_t *ctx, surfacetemp_cfg_t *cfg) |
Initialization function. | |
void | surfacetemp_default_cfg (surfacetemp_t *ctx) |
Click Default Configuration function. | |
void | surfacetemp_generic_write (surfacetemp_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | surfacetemp_generic_read (surfacetemp_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | surfacetemp_get_pwm_pin (surfacetemp_t *ctx) |
Getting PWM pin state. | |
void | surfacetemp_soft_reset (surfacetemp_t *ctx) |
Soft reset. | |
float | surfacetemp_get_temperature (surfacetemp_t *ctx) |
Getting temperature value. | |
uint8_t | surfacetemp_get_status (surfacetemp_t *ctx) |
Getting device status. | |
uint8_t | surfacetemp_set_high_threshold (surfacetemp_t *ctx, float high_threshold) |
Setting high threshold limit. | |
uint8_t | surfacetemp_set_low_threshold (surfacetemp_t *ctx, float high_threshold) |
Setting low threshold limit. | |
uint8_t | surfacetemp_set_critical_threshold (surfacetemp_t *ctx, float high_threshold) |
Setting critical threshold limit. | |
uint8_t | surfacetemp_set_hysteresis (surfacetemp_t *ctx, uint8_t hysteresis) |
Setting hysteresis value. | |
uint8_t | surfacetemp_setup (surfacetemp_t *ctx) |
Device initialization. | |
This file contains API for Surface temp Click driver.