vtohz2 2.0.0.0
|
Functions | |
void | vtohz2_cfg_setup (vtohz2_cfg_t *cfg) |
Config Object Initialization function. | |
VTOHZ2_RETVAL | vtohz2_init (vtohz2_t *ctx, vtohz2_cfg_t *cfg) |
Initialization function. | |
void | vtohz2_default_cfg (vtohz2_t *ctx) |
Click Default Configuration function. | |
void | vtohz2_set_duty_cycle (vtohz2_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | vtohz2_pwm_stop (vtohz2_t *ctx) |
Stop PWM module. | |
void | vtohz2_pwm_start (vtohz2_t *ctx) |
Start PWM module. | |
void | vtohz2_enable (vtohz2_t *ctx, uint8_t state) |
Enable function. | |
uint8_t | vtohz2_get_freq_out (vtohz2_t *ctx) |
Frequency Out Get function. | |
void vtohz2_cfg_setup | ( | vtohz2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void vtohz2_default_cfg | ( | vtohz2_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for VToHz2 click.
void vtohz2_enable | ( | vtohz2_t * | ctx, |
uint8_t | state ) |
Enable function.
ctx | Click object. |
state | 0 - Disable 1 - Enable |
@descripion Function performs enabling and disabling of the device.
uint8_t vtohz2_get_freq_out | ( | vtohz2_t * | ctx | ) |
Frequency Out Get function.
ctx | Click object. |
@description Function gets the out frequency on mikrobus INT pin.
VTOHZ2_RETVAL vtohz2_init | ( | vtohz2_t * | ctx, |
vtohz2_cfg_t * | cfg ) |
Initialization function.
vtohz2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void vtohz2_pwm_start | ( | vtohz2_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
@description This function starts PWM module.
void vtohz2_pwm_stop | ( | vtohz2_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
@description This function stops PWM module.
void vtohz2_set_duty_cycle | ( | vtohz2_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.