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 LEDDRIVER4_MAP_MIKROBUS( cfg, mikrobus ) \
67 cfg.ctl = MIKROBUS( mikrobus, MIKROBUS_PWM )
74#define LEDDRIVER4_RETVAL uint8_t
76#define LEDDRIVER4_OK 0x00
77#define LEDDRIVER4_INIT_ERROR 0xFF
84#define LEDDRIVER4_DEF_FREQ 5000
#define LEDDRIVER4_RETVAL
Definition leddriver4.h:74
void leddriver4_set_duty_cycle(leddriver4_t *ctx, float duty_cycle)
Generic sets PWM duty cycle.
void leddriver4_pwm_start(leddriver4_t *ctx)
Start PWM module.
LEDDRIVER4_RETVAL leddriver4_init(leddriver4_t *ctx, leddriver4_cfg_t *cfg)
Initialization function.
void leddriver4_pwm_stop(leddriver4_t *ctx)
Stop PWM module.
void leddriver4_cfg_setup(leddriver4_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition leddriver4.h:113
uint32_t dev_pwm_freq
Definition leddriver4.h:120
pin_name_t ctl
Definition leddriver4.h:116
Click ctx object definition.
Definition leddriver4.h:98
pwm_t ctl
Definition leddriver4.h:101
uint32_t pwm_freq
Definition leddriver4.h:104