thermostat3 2.0.0.0
|
Functions | |
void | thermostat3_cfg_setup (thermostat3_cfg_t *cfg) |
Config Object Initialization function. | |
THERMOSTAT_RETVAL | thermostat3_init (thermostat3_t *ctx, thermostat3_cfg_t *cfg) |
Initialization function. | |
void | thermostat3_generic_read (thermostat3_t *ctx, uint8_t *read_buff) |
void | thermostat3_process (thermostat3_t *ctx, temp_vals_t *tmp) |
Thermostat Process Read data. | |
float | thermostat3_get_internal_temperature (temp_vals_t *tmp, uint8_t temp_in) |
Junction (Internal) Temperature. | |
float | thermostat3_get_thermocouple_temperature (temp_vals_t *tmp, uint8_t temp_in) |
Thermocouple Temperature (K probe) | |
uint8_t | thermostat3_get_fault_data (temp_vals_t *tmp, uint8_t err) |
Fault data value. | |
void | thermostat3_relay_control (thermostat3_t *ctx, uint8_t relay_pos) |
Relay Control. | |
void thermostat3_cfg_setup | ( | thermostat3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void thermostat3_generic_read | ( | thermostat3_t * | ctx, |
uint8_t * | read_buff ) |
uint8_t thermostat3_get_fault_data | ( | temp_vals_t * | tmp, |
uint8_t | err ) |
Fault data value.
err | Fault error (ACTIVE FAULT, SCV, SCG, OC or all-Error) |
ctx | Click object. |
@description This function returns Fault data Value.
float thermostat3_get_internal_temperature | ( | temp_vals_t * | tmp, |
uint8_t | temp_in ) |
Junction (Internal) Temperature.
temp_in | Temperature in (CELSIUS, KELVIN or FAHRENHEIT) |
ctx | Click object. |
@description This function returns 12-Bit Internal Temperature Data
float thermostat3_get_thermocouple_temperature | ( | temp_vals_t * | tmp, |
uint8_t | temp_in ) |
Thermocouple Temperature (K probe)
temp_in | Temperature in (CELSIUS, KELVIN or FAHRENHEIT) |
ctx | Click object. |
@description This function returns 14-Bit Thermocouple Temperature Data
THERMOSTAT_RETVAL thermostat3_init | ( | thermostat3_t * | ctx, |
thermostat3_cfg_t * | cfg ) |
Initialization function.
thermostat3 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void thermostat3_process | ( | thermostat3_t * | ctx, |
temp_vals_t * | tmp ) |
Thermostat Process Read data.
ctx | Click object. |
tmp | Temperature click object |
@description This function must be constantly called in the task. The function continuously reads data from the SPI lines and parses the read data.
void thermostat3_relay_control | ( | thermostat3_t * | ctx, |
uint8_t | relay_pos ) |
Relay Control.
relay_pos | Relay (ON or OFF state) |
ctx | Click object. |
@description This function enables control of the relay.