vreg2
2.0.0.0
|
This file contains API for VREG 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 | vreg2_t |
Click ctx object definition. More... | |
struct | vreg2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | VREG2_MAP_MIKROBUS(cfg, mikrobus) |
#define | VREG2_RETVAL uint8_t |
#define | VREG2_OK 0x00 |
#define | VREG2_INIT_ERROR 0xFF |
#define | VREG2_DEF_FREQ 20000 |
Functions | |
void | vreg2_cfg_setup (vreg2_cfg_t *cfg) |
Config Object Initialization function. More... | |
VREG2_RETVAL | vreg2_init (vreg2_t *ctx, vreg2_cfg_t *cfg) |
Initialization function. More... | |
void | vreg2_default_cfg (vreg2_t *ctx) |
Click Default Configuration function. More... | |
void | vreg2_set_duty_cycle (vreg2_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. More... | |
void | vreg2_pwm_stop (vreg2_t *ctx) |
Stop PWM module. More... | |
void | vreg2_pwm_start (vreg2_t *ctx) |
Start PWM module. More... | |
This file contains API for VREG 2 Click driver.