39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
73#define LEDDRIVER17_DEF_FREQ 20000
91#define LEDDRIVER17_MAP_MIKROBUS( cfg, mikrobus ) \
92 cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
93 cfg.flt = MIKROBUS( mikrobus, MIKROBUS_INT );
err_t leddriver17_set_duty_cycle(leddriver17_t *ctx, float duty_cycle)
LED Driver 17 sets PWM duty cycle.
err_t leddriver17_pwm_stop(leddriver17_t *ctx)
LED Driver 17 stop PWM module.
uint8_t leddriver17_get_fault_pin(leddriver17_t *ctx)
LED Driver 17 get fault pin function.
err_t leddriver17_default_cfg(leddriver17_t *ctx)
LED Driver 17 default configuration function.
void leddriver17_cfg_setup(leddriver17_cfg_t *cfg)
LED Driver 17 configuration object setup function.
err_t leddriver17_pwm_start(leddriver17_t *ctx)
LED Driver 17 start PWM module.
err_t leddriver17_init(leddriver17_t *ctx, leddriver17_cfg_t *cfg)
LED Driver 17 initialization function.
leddriver17_return_value_t
LED Driver 17 Click return value data.
Definition leddriver17.h:137
@ LEDDRIVER17_OK
Definition leddriver17.h:138
@ LEDDRIVER17_ERROR
Definition leddriver17.h:139
LED Driver 17 Click configuration object.
Definition leddriver17.h:120
uint32_t dev_pwm_freq
Definition leddriver17.h:128
pin_name_t flt
Definition leddriver17.h:125
pin_name_t pwm
Definition leddriver17.h:122
LED Driver 17 Click context object.
Definition leddriver17.h:103
digital_in_t flt
Definition leddriver17.h:105
uint32_t pwm_freq
Definition leddriver17.h:111
pwm_t pwm
Definition leddriver17.h:108