dcmotor8 2.0.0.0
|
This file contains API for DC Motor 8 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 | dcmotor8_t |
Click ctx object definition. More... | |
struct | dcmotor8_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | DCMOTOR8_MAP_MIKROBUS(cfg, mikrobus) |
#define | DCMOTOR8_RETVAL uint8_t |
#define | DCMOTOR8_OK 0x00 |
#define | DCMOTOR8_INIT_ERROR 0xFF |
#define | DCMOTOR8_ENABLE 1 |
#define | DCMOTOR8_DISABLE 0 |
#define | DCMOTOR8_DEF_FREQ 20000 |
Functions | |
void | dcmotor8_cfg_setup (dcmotor8_cfg_t *cfg) |
Config Object Initialization function. | |
DCMOTOR8_RETVAL | dcmotor8_init (dcmotor8_t *ctx, dcmotor8_cfg_t *cfg) |
Initialization function. | |
void | dcmotor8_set_duty_cycle (dcmotor8_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | dcmotor8_pwm_stop (dcmotor8_t *ctx) |
Stop PWM module. | |
void | dcmotor8_pwm_start (dcmotor8_t *ctx) |
Start PWM module. | |
void | dcmotor8_enable (dcmotor8_t *ctx, uint8_t state) |
Enable function. | |
This file contains API for DC Motor 8 Click driver.