dcmotor3 2.0.0.0
|
This file contains API for DC Motor 3 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 | dcmotor3_t |
Click ctx object definition. More... | |
struct | dcmotor3_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | DCMOTOR3_MAP_MIKROBUS(cfg, mikrobus) |
#define | DCMOTOR3_RETVAL uint8_t |
#define | DCMOTOR3_OK 0x00 |
#define | DCMOTOR3_INIT_ERROR 0xFF |
#define | DCMOTOR3_DEF_FREQ 15000 |
Functions | |
void | dcmotor3_cfg_setup (dcmotor3_cfg_t *cfg) |
Config Object Initialization function. | |
DCMOTOR3_RETVAL | dcmotor3_init (dcmotor3_t *ctx, dcmotor3_cfg_t *cfg) |
Initialization function. | |
void | dcmotor3_set_duty_cycle (dcmotor3_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | dcmotor3_pwm_stop (dcmotor3_t *ctx) |
Stop PWM module. | |
void | dcmotor3_pwm_start (dcmotor3_t *ctx) |
Start PWM module. | |
void | dcmotor3_enable (dcmotor3_t *ctx) |
Enable the engine function. | |
void | dcmotor3_standby (dcmotor3_t *ctx) |
Disable the engine function. | |
void | dcmotor3_counter_clockwise (dcmotor3_t *ctx) |
Set the direction of rotation in the counter clockwise direction function. | |
void | dcmotor3_clockwise (dcmotor3_t *ctx) |
Set the direction of rotation in the clockwise direction function. | |
void | dcmotor3_short_brake (dcmotor3_t *ctx) |
Brake the engine function. | |
void | dcmotor3_stop (dcmotor3_t *ctx) |
Stop the engine function. | |
This file contains API for DC Motor 3 Click driver.