haptic2 2.0.0.0
|
This file contains API for HAPTIC 2 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | haptic2_t |
HAPTIC 2 Click driver selector. More... | |
struct | haptic2_cfg_t |
HAPTIC 2 Click configuration object. More... | |
Macros | |
#define | HAPTIC2_DEF_FREQ 8000 |
HAPTIC 2 default PWM frequency. | |
#define | HAPTIC2_MAP_MIKROBUS(cfg, mikrobus) cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM ) |
MikroBUS pin mapping. | |
Functions | |
void | haptic2_cfg_setup (haptic2_cfg_t *cfg) |
HAPTIC 2 configuration object setup function. | |
err_t | haptic2_init (haptic2_t *ctx, haptic2_cfg_t *cfg) |
HAPTIC 2 initialization function. | |
err_t | haptic2_default_cfg (haptic2_t *ctx) |
HAPTIC 2 default configuration function. | |
err_t | haptic2_set_duty_cycle (haptic2_t *ctx, float duty_ratio) |
HAPTIC 2 sets PWM duty cycle. | |
err_t | haptic2_pwm_stop (haptic2_t *ctx) |
HAPTIC 2 stop PWM module. | |
err_t | haptic2_pwm_start (haptic2_t *ctx) |
HAPTIC 2 start PWM module. | |
This file contains API for HAPTIC 2 Click Driver.