surfacetemp 2.0.0.0
|
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. | |
void surfacetemp_cfg_setup | ( | surfacetemp_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void surfacetemp_default_cfg | ( | surfacetemp_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for SurfaceTemp click.
void surfacetemp_generic_read | ( | surfacetemp_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void surfacetemp_generic_write | ( | surfacetemp_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
uint8_t surfacetemp_get_pwm_pin | ( | surfacetemp_t * | ctx | ) |
Getting PWM pin state.
ctx | Click object. |
uint8_t surfacetemp_get_status | ( | surfacetemp_t * | ctx | ) |
Getting device status.
ctx | Click object. |
float surfacetemp_get_temperature | ( | surfacetemp_t * | ctx | ) |
Getting temperature value.
ctx | Click object. |
SURFACETEMP_RETVAL surfacetemp_init | ( | surfacetemp_t * | ctx, |
surfacetemp_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t surfacetemp_set_critical_threshold | ( | surfacetemp_t * | ctx, |
float | high_threshold ) |
Setting critical threshold limit.
ctx | Click object. |
critical_threshold | - critical threshold value |
uint8_t surfacetemp_set_high_threshold | ( | surfacetemp_t * | ctx, |
float | high_threshold ) |
Setting high threshold limit.
ctx | Click object. |
high_threshold | - high threshold value |
uint8_t surfacetemp_set_hysteresis | ( | surfacetemp_t * | ctx, |
uint8_t | hysteresis ) |
Setting hysteresis value.
ctx | Click object. |
hysteresis | - hysteresis value |
uint8_t surfacetemp_set_low_threshold | ( | surfacetemp_t * | ctx, |
float | high_threshold ) |
Setting low threshold limit.
ctx | Click object. |
low_threshold | - low threshold value |
uint8_t surfacetemp_setup | ( | surfacetemp_t * | ctx | ) |
Device initialization.
ctx | Click object. |
void surfacetemp_soft_reset | ( | surfacetemp_t * | ctx | ) |
Soft reset.
ctx | Click object. |