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 VIBROMOTOR2_DEF_FREQ 5000
91#define VIBROMOTOR2_MAP_MIKROBUS( cfg, mikrobus ) \
92 cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM )
void vibromotor2_cfg_setup(vibromotor2_cfg_t *cfg)
Vibro Motor 2 configuration object setup function.
err_t vibromotor2_set_duty_cycle(vibromotor2_t *ctx, float duty_cycle)
Vibro Motor 2 sets PWM duty cycle.
err_t vibromotor2_pwm_start(vibromotor2_t *ctx)
Vibro Motor 2 start PWM module.
err_t vibromotor2_init(vibromotor2_t *ctx, vibromotor2_cfg_t *cfg)
Vibro Motor 2 initialization function.
err_t vibromotor2_pwm_stop(vibromotor2_t *ctx)
Vibro Motor 2 stop PWM module.
Vibro Motor 2 Click configuration object.
Definition vibromotor2.h:121
uint32_t dev_pwm_freq
Definition vibromotor2.h:126
pin_name_t pwm
Definition vibromotor2.h:123
Vibro Motor 2 Click driver selector.
Definition vibromotor2.h:107
uint32_t pwm_freq
Definition vibromotor2.h:112
pwm_t pwm
Definition vibromotor2.h:109
vibromotor2_return_value_t
Vibro Motor 2 Click return value data.
Definition vibromotor2.h:135
@ VIBROMOTOR2_ERROR
Definition vibromotor2.h:137
@ VIBROMOTOR2_OK
Definition vibromotor2.h:136