|
lighttemp 2.2.0
|
Functions | |
| void | lighttemp_cfg_setup (lighttemp_cfg_t *cfg) |
| Config Object Initialization function. | |
| LIGHTTEMP_RETVAL | lighttemp_init (lighttemp_t *ctx, lighttemp_cfg_t *cfg) |
| Initialization function. | |
| void | lighttemp_generic_write (lighttemp_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
| Generic write function. | |
| void | lighttemp_generic_read (lighttemp_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
| Generic read function. | |
| uint16_t | lighttemp_get_pg_voltage (lighttemp_t *ctx) |
| Get voltage. | |
| uint8_t | lighttemp_get_interrupt_state (lighttemp_t *ctx) |
| Get INT pin state. | |
| void | lighttemp_led1_set_duty_cycle (lighttemp_t *ctx, float duty_cycle) |
| Generic sets PWM duty cycle for LED1. | |
| void | lighttemp_led1_pwm_stop (lighttemp_t *ctx) |
| Stop PWM module for LED1. | |
| void | lighttemp_led1_pwm_start (lighttemp_t *ctx) |
| Start PWM module for LED1. | |
| void | lighttemp_led2_set_duty_cycle (lighttemp_t *ctx, float duty_cycle) |
| Generic sets PWM duty cycle for LED2. | |
| void | lighttemp_led2_pwm_stop (lighttemp_t *ctx) |
| Stop PWM module for LED2. | |
| void | lighttemp_led2_pwm_start (lighttemp_t *ctx) |
| Start PWM module for LED2. | |
| void lighttemp_cfg_setup | ( | lighttemp_cfg_t * | cfg | ) |
Config Object Initialization function.
| cfg | Click configuration structure. |
@description This function initializes Click configuration structure to init state.
| void lighttemp_generic_read | ( | lighttemp_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 lighttemp_generic_write | ( | lighttemp_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 lighttemp_get_interrupt_state | ( | lighttemp_t * | ctx | ) |
Get INT pin state.
| ctx | Click object. |
@description This function get state of int_pin.
| uint16_t lighttemp_get_pg_voltage | ( | lighttemp_t * | ctx | ) |
Get voltage.
| ctx | Click object. |
@description This function get voltage.
| LIGHTTEMP_RETVAL lighttemp_init | ( | lighttemp_t * | ctx, |
| lighttemp_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.
| void lighttemp_led1_pwm_start | ( | lighttemp_t * | ctx | ) |
Start PWM module for LED1.
| ctx | Click object. |
@description This function starts PWM module for LED1.
| void lighttemp_led1_pwm_stop | ( | lighttemp_t * | ctx | ) |
Stop PWM module for LED1.
| ctx | Click object. |
@description This function stops PWM module for LED1.
| void lighttemp_led1_set_duty_cycle | ( | lighttemp_t * | ctx, |
| float | duty_cycle ) |
Generic sets PWM duty cycle for LED1.
| ctx | Click object. |
| duty_cycle | Duty cycle. |
@description This function sets the PWM duty cycle for LED1.
| void lighttemp_led2_pwm_start | ( | lighttemp_t * | ctx | ) |
Start PWM module for LED2.
| ctx | Click object. |
@description This function starts PWM module for LED2.
| void lighttemp_led2_pwm_stop | ( | lighttemp_t * | ctx | ) |
Stop PWM module for LED2.
| ctx | Click object. |
@description This function stops PWM module for LED2.
| void lighttemp_led2_set_duty_cycle | ( | lighttemp_t * | ctx, |
| float | duty_cycle ) |
Generic sets PWM duty cycle for LED2.
| ctx | Click object. |
| duty_cycle | Duty cycle. |
@description This function sets the PWM duty cycle for LED2.