heater 2.0.0.0
|
Functions | |
void | heater_cfg_setup (heater_cfg_t *cfg, heater_config_t *cfg1) |
Config Object Initialization function. | |
HEATER_RETVAL | heater_init (heater_t *ctx, heater_cfg_t *cfg, heater_config_t *cfg1) |
Initialization function. | |
void | heater_set_led1_status (heater_t *ctx, uint8_t status) |
Sets state of the rst pin. | |
void | heater_set_led2_status (heater_t *ctx, uint8_t status) |
Sets state of the cs pin. | |
uint16_t | heater_read_data (heater_t *ctx) |
Generic function for reading data from device. | |
float | heater_read_mv (heater_t *ctx) |
Function reads data from device and converts it to mV value. | |
float | heater_read_temp (heater_t *ctx) |
Function reads data and converts it to temperature data in degree C. | |
void | heater_set_duty_cycle (heater_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | heater_pwm_stop (heater_t *ctx) |
Stop PWM module. | |
void | heater_pwm_start (heater_t *ctx) |
Start PWM module. | |
void heater_cfg_setup | ( | heater_cfg_t * | cfg, |
heater_config_t * | cfg1 ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
HEATER_RETVAL heater_init | ( | heater_t * | ctx, |
heater_cfg_t * | cfg, | ||
heater_config_t * | cfg1 ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void heater_pwm_start | ( | heater_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
@description This function starts PWM module.
void heater_pwm_stop | ( | heater_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
@description This function stops PWM module.
uint16_t heater_read_data | ( | heater_t * | ctx | ) |
Generic function for reading data from device.
ctx | Click object. |
float heater_read_mv | ( | heater_t * | ctx | ) |
Function reads data from device and converts it to mV value.
ctx | Click object. |
float heater_read_temp | ( | heater_t * | ctx | ) |
Function reads data and converts it to temperature data in degree C.
ctx | Click object. |
void heater_set_duty_cycle | ( | heater_t * | ctx, |
float | duty_cycle ) |
Generic sets PWM duty cycle.
ctx | Click object. |
duty_cycle | Duty cycle. |
@description This function sets the PWM duty cycle.
void heater_set_led1_status | ( | heater_t * | ctx, |
uint8_t | status ) |
Sets state of the rst pin.
ctx | Click object. |
status | status of the led |
void heater_set_led2_status | ( | heater_t * | ctx, |
uint8_t | status ) |
Sets state of the cs pin.
ctx | Click object. |
status | status of the led |