dcmotor9 2.0.0.0
|
This file contains API for DC Motor 9 Click driver. More...
#include "drv_digital_out.h"
#include "drv_pwm.h"
#include "drv_analog_in.h"
Go to the source code of this file.
Data Structures | |
struct | dcmotor9_t |
Click ctx object definition. More... | |
struct | dcmotor9_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | DCMOTOR9_MAP_MIKROBUS(cfg, mikrobus) |
#define | DCMOTOR9_DEF_FREQ 20000 |
#define | DCMOTOR9_DEF_VREF 3.3 |
#define | DCMOTOR9_PWM_DUTY_PERCENT_0 0.0 |
#define | DCMOTOR9_PWM_DUTY_PERCENT_10 0.1 |
#define | DCMOTOR9_PWM_DUTY_PERCENT_20 0.2 |
#define | DCMOTOR9_PWM_DUTY_PERCENT_30 0.3 |
#define | DCMOTOR9_PWM_DUTY_PERCENT_40 0.4 |
#define | DCMOTOR9_PWM_DUTY_PERCENT_50 0.5 |
#define | DCMOTOR9_PWM_DUTY_PERCENT_60 0.6 |
#define | DCMOTOR9_PWM_DUTY_PERCENT_70 0.7 |
#define | DCMOTOR9_PWM_DUTY_PERCENT_80 0.8 |
#define | DCMOTOR9_PWM_DUTY_PERCENT_90 0.9 |
#define | DCMOTOR9_PWM_DUTY_PERCENT_100 1.0 |
Functions | |
void | dcmotor9_cfg_setup (dcmotor9_cfg_t *cfg) |
Configuration Object Init Setup function. More... | |
err_t | dcmotor9_init (dcmotor9_t *ctx, dcmotor9_cfg_t *cfg) |
Initialization function. More... | |
void | dcmotor9_set_duty_cycle (dcmotor9_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. More... | |
void | dcmotor9_pwm_stop (dcmotor9_t *ctx) |
Stop PWM module. More... | |
void | dcmotor9_pwm_start (dcmotor9_t *ctx) |
Start PWM module. More... | |
void | dcmotor9_enable (dcmotor9_t *ctx) |
Enable the engine function. More... | |
void | dcmotor9_standby (dcmotor9_t *ctx) |
Disable the engine function. More... | |
void | dcmotor9_counter_clockwise (dcmotor9_t *ctx) |
Set the counter clockwise direction of rotation function. More... | |
void | dcmotor9_clockwise (dcmotor9_t *ctx) |
Set the clockwise direction of rotation function. More... | |
void | dcmotor9_short_brake (dcmotor9_t *ctx) |
Brake the engine function. More... | |
void | dcmotor9_stop (dcmotor9_t *ctx) |
Stop the engine function. More... | |
err_t | dcmotor9_read_an_value (dcmotor9_t *ctx, uint16_t *data_out) |
AN Value Read function. More... | |
err_t | dcmotor9_read_an_voltage (dcmotor9_t *ctx, float *data_out) |
AN Voltage Read function. More... | |
This file contains API for DC Motor 9 Click driver.