42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
66#define UVCLIGHT_MAP_MIKROBUS( cfg, mikrobus ) \
67 cfg.dim = MIKROBUS( mikrobus, MIKROBUS_PWM )
74#define UVCLIGHT_RETVAL uint8_t
76#define UVCLIGHT_OK 0x00
77#define UVCLIGHT_INIT_ERROR 0xFF
84#define UVCLIGHT_DEF_FREQ 20000
#define UVCLIGHT_RETVAL
Definition uvclight.h:74
void uvclight_pwm_start(uvclight_t *ctx)
Start PWM module.
void uvclight_set_duty_cycle(uvclight_t *ctx, float duty_cycle)
Generic sets PWM duty cycle.
void uvclight_pwm_stop(uvclight_t *ctx)
Stop PWM module.
UVCLIGHT_RETVAL uvclight_init(uvclight_t *ctx, uvclight_cfg_t *cfg)
Initialization function.
void uvclight_cfg_setup(uvclight_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition uvclight.h:113
pin_name_t dim
Definition uvclight.h:116
uint32_t dev_pwm_freq
Definition uvclight.h:120
Click ctx object definition.
Definition uvclight.h:98
uint32_t pwm_freq
Definition uvclight.h:105
pwm_t dim
Definition uvclight.h:101