vtohz 2.0.0.0
vtohz.h File Reference

This file contains API for V to Hz 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  vtohz_t
 Click ctx object definition. More...
 
struct  vtohz_cfg_t
 Click configuration structure definition. More...
 

Macros

#define VTOHZ_MAP_MIKROBUS(cfg, mikrobus)
 
#define VTOHZ_RETVAL   uint8_t
 
#define VTOHZ_OK   0x00
 
#define VTOHZ_INIT_ERROR   0xFF
 
#define VTOHZ_DEF_FREQ   50000
 

Functions

void vtohz_cfg_setup (vtohz_cfg_t *cfg)
 Config Object Initialization function.
 
VTOHZ_RETVAL vtohz_init (vtohz_t *ctx, vtohz_cfg_t *cfg)
 Initialization function.
 
void vtohz_set_duty_cycle (vtohz_t *ctx, float duty_cycle)
 Generic sets PWM duty cycle.
 
void vtohz_pwm_stop (vtohz_t *ctx)
 Stop PWM module.
 
void vtohz_pwm_start (vtohz_t *ctx)
 Start PWM module.
 
void vtohz_enable (vtohz_t *ctx)
 Enable the click module.
 

Detailed Description

This file contains API for V to Hz Click driver.