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 LEDDRIVER13_DEF_FREQ 5000
75#define LEDDRIVER13_FAULT_OCCURS 0
76#define LEDDRIVER13_CONDITION_OK 1
94#define LEDDRIVER13_MAP_MIKROBUS( cfg, mikrobus ) \
95 cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
96 cfg.en = MIKROBUS( mikrobus, MIKROBUS_CS ); \
97 cfg.flt = MIKROBUS( mikrobus, MIKROBUS_INT );
uint8_t leddriver13_get_fault(leddriver13_t *ctx)
LED Driver 13 get fault function.
err_t leddriver13_default_cfg(leddriver13_t *ctx)
LED Driver 13 default configuration function.
void leddriver13_cfg_setup(leddriver13_cfg_t *cfg)
LED Driver 13 configuration object setup function.
err_t leddriver13_pwm_stop(leddriver13_t *ctx)
LED Driver 13 stop PWM module.
err_t leddriver13_set_enable(leddriver13_t *ctx)
LED Driver 13 set enable function.
err_t leddriver13_set_duty_cycle(leddriver13_t *ctx, float duty_cycle)
LED Driver 13 sets PWM duty cycle.
err_t leddriver13_init(leddriver13_t *ctx, leddriver13_cfg_t *cfg)
LED Driver 13 initialization function.
err_t leddriver13_set_disable(leddriver13_t *ctx)
LED Driver 13 set disable function.
err_t leddriver13_pwm_start(leddriver13_t *ctx)
LED Driver 13 start PWM module.
leddriver13_return_value_t
LED Driver 13 Click return value data.
Definition leddriver13.h:150
@ LEDDRIVER13_ERROR
Definition leddriver13.h:152
@ LEDDRIVER13_OK
Definition leddriver13.h:151
LED Driver 13 Click configuration object.
Definition leddriver13.h:132
uint32_t dev_pwm_freq
Definition leddriver13.h:141
pin_name_t flt
Definition leddriver13.h:138
pin_name_t en
Definition leddriver13.h:137
pin_name_t pwm
Definition leddriver13.h:134
LED Driver 13 Click driver selector.
Definition leddriver13.h:112
digital_in_t flt
Definition leddriver13.h:117
uint32_t pwm_freq
Definition leddriver13.h:123
digital_out_t en
Definition leddriver13.h:114
pwm_t pwm
Definition leddriver13.h:120