vtohz2 2.0.0.0
vtohz2.h File Reference

This file contains API for V to Hz 2 Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_pwm.h"

Go to the source code of this file.

Data Structures

struct  vtohz2_t
 Click ctx object definition. More...
 
struct  vtohz2_cfg_t
 Click configuration structure definition. More...
 

Macros

#define VTOHZ2_MAP_MIKROBUS(cfg, mikrobus)
 
#define VTOHZ2_RETVAL   uint8_t
 
#define VTOHZ2_OK   0x00
 
#define VTOHZ2_INIT_ERROR   0xFF
 
#define VTOHZ2_ENABLE   1
 
#define VTOHZ2_DISABLE   0
 
#define VTOHZ2_DEF_FREQ   20000
 

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.
 

Detailed Description

This file contains API for V to Hz 2 Click driver.