remotetemp 2.0.0.0
|
Functions | |
void | remotetemp_cfg_setup (remotetemp_cfg_t *cfg) |
Config Object Initialization function. | |
REMOTETEMP_RETVAL | remotetemp_init (remotetemp_t *ctx, remotetemp_cfg_t *cfg) |
Initialization function. | |
void | remotetemp_default_cfg (remotetemp_t *ctx) |
Click Default Configuration function. | |
void | remotetemp_generic_write (remotetemp_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | remotetemp_generic_read (remotetemp_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | remotetemp_int_get (remotetemp_t *ctx) |
Getting state of INT pin. | |
uint8_t | remotetemp_an_get (remotetemp_t *ctx) |
Getting state of AN pin. | |
uint8_t | remotetemp_set_range (remotetemp_t *ctx, uint8_t range_setting) |
Setting temperature range. | |
void | remotetemp_read (remotetemp_t *ctx, uint8_t register_address, uint8_t *read_buffer, uint8_t n_bytes) |
Reads register content. | |
void | remotetemp_write (remotetemp_t *ctx, uint8_t register_address, uint8_t *register_values, uint8_t n_bytes) |
Setting register content. | |
void | remotetemp_set_int_diode_high_limit (remotetemp_t *ctx, int16_t limit_value) |
Setting Internal diode high limit. | |
void | remotetemp_set_int_diode_low_limit (remotetemp_t *ctx, int16_t limit_value) |
Setting Internal diode low limit. | |
void | remotetemp_set_ext_diode_high_limit (remotetemp_t *ctx, int16_t limit_value, uint8_t diode) |
Setting external diodes high limit. | |
void | remotetemp_set_ext_diode_low_limit (remotetemp_t *ctx, int16_t limit_value, uint8_t diode) |
Setting external diodes low limit. | |
void | remotetemp_set_ext_diode_therm_limit (remotetemp_t *ctx, int16_t limit_value, uint8_t diode) |
Setting external diodes thermal limits. | |
void | remotetemp_set_int_diode_therm_limit (remotetemp_t *ctx, int16_t limit_value) |
Setting internal diodes thermal limits. | |
float | remotetemp_get_internal_diode (remotetemp_t *ctx) |
Getting internal diode temperature value. | |
float | remotetemp_get_external_diode (remotetemp_t *ctx, uint8_t diode) |
Getting external diode temperature value. | |
float | remotetemp_get_hottest_diode (remotetemp_t *ctx) |
Getting hottest diode temperature value. | |
uint8_t remotetemp_an_get | ( | remotetemp_t * | ctx | ) |
Getting state of AN pin.
ctx | Click object. |
@description This function gets state of AN pin.
void remotetemp_cfg_setup | ( | remotetemp_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void remotetemp_default_cfg | ( | remotetemp_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for RemoteTemp click.
void remotetemp_generic_read | ( | remotetemp_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 remotetemp_generic_write | ( | remotetemp_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.
float remotetemp_get_external_diode | ( | remotetemp_t * | ctx, |
uint8_t | diode ) |
Getting external diode temperature value.
ctx | Click object. |
diode | Diode number. |
@description This function reads external diode registers and calculates temperature value.
float remotetemp_get_hottest_diode | ( | remotetemp_t * | ctx | ) |
Getting hottest diode temperature value.
ctx | Click object. |
@description This function reads hottest diode registers and calculates temperature value.
float remotetemp_get_internal_diode | ( | remotetemp_t * | ctx | ) |
Getting internal diode temperature value.
ctx | Click object. |
@description This function reads internal diode registers and calculates temperature value.
REMOTETEMP_RETVAL remotetemp_init | ( | remotetemp_t * | ctx, |
remotetemp_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 remotetemp_int_get | ( | remotetemp_t * | ctx | ) |
Getting state of INT pin.
ctx | Click object. |
@description This function gets state of INT pin.
void remotetemp_read | ( | remotetemp_t * | ctx, |
uint8_t | register_address, | ||
uint8_t * | read_buffer, | ||
uint8_t | n_bytes ) |
Reads register content.
ctx | Click object. |
register_address | Sets temperature range. |
read_buffer | Buffer for storing register content. |
n_bytes | Number of registers(bytes) to read. |
@description This function reads content from register(s).
void remotetemp_set_ext_diode_high_limit | ( | remotetemp_t * | ctx, |
int16_t | limit_value, | ||
uint8_t | diode ) |
Setting external diodes high limit.
ctx | Click object. |
limit_value | Threshold value. |
diode | Diode number. |
@description This function sets high threshold value for external diodes.
void remotetemp_set_ext_diode_low_limit | ( | remotetemp_t * | ctx, |
int16_t | limit_value, | ||
uint8_t | diode ) |
Setting external diodes low limit.
ctx | Click object. |
limit_value | Threshold value. |
diode | Diode number. |
@description This function sets low threshold values for external diodes.
void remotetemp_set_ext_diode_therm_limit | ( | remotetemp_t * | ctx, |
int16_t | limit_value, | ||
uint8_t | diode ) |
Setting external diodes thermal limits.
ctx | Click object. |
limit_value | Threshold value. |
diode | Diode number. |
@description This function sets thermal threshold values for external diodes.
void remotetemp_set_int_diode_high_limit | ( | remotetemp_t * | ctx, |
int16_t | limit_value ) |
Setting Internal diode high limit.
ctx | Click object. |
limit_value | Threshold value. |
@description This function sets high threshold value for internal diode.
void remotetemp_set_int_diode_low_limit | ( | remotetemp_t * | ctx, |
int16_t | limit_value ) |
Setting Internal diode low limit.
ctx | Click object. |
limit_value | Threshold value. |
@description This function sets low threshold value for internal diode.
void remotetemp_set_int_diode_therm_limit | ( | remotetemp_t * | ctx, |
int16_t | limit_value ) |
Setting internal diodes thermal limits.
ctx | Click object. |
limit_value | Threshold value. |
@description This function sets thermal threshold value for internal diode.
uint8_t remotetemp_set_range | ( | remotetemp_t * | ctx, |
uint8_t | range_setting ) |
Setting temperature range.
ctx | Click object. |
range_setting | Sets temperature range. |
@description This function sets temperature range (( from 0 to 127 ) or ( from (-64) to 191 )).
void remotetemp_write | ( | remotetemp_t * | ctx, |
uint8_t | register_address, | ||
uint8_t * | register_values, | ||
uint8_t | n_bytes ) |
Setting register content.
ctx | Click object. |
register_address | Address of the (first) register to write to. |
register_values | Buffer for storing register content. |
n_bytes | Number of registers(bytes) to read. |
@description This function writes content to register(s).