dcmotor17 2.0.0.0
|
This file contains API for DC Motor 17 Click Driver. More...
#include "drv_digital_out.h"
Go to the source code of this file.
Data Structures | |
struct | dcmotor17_t |
DC Motor 17 Click context object. More... | |
struct | dcmotor17_cfg_t |
DC Motor 17 Click configuration object. More... | |
Macros | |
#define | dcmotor17_retval_t uint8_t |
DC Motor 17 error code settings. | |
#define | DCMOTOR17_OK 0x00 |
#define | DCMOTOR17_ERROR 0xFF |
#define | DCMOTOR17_SEL_OUT_A 0 |
DC Motor 17 select channel motor output settings. | |
#define | DCMOTOR17_SEL_OUT_B 1 |
#define | DCMOTOR17_SEL_MODE_STANDBY 0 |
DC Motor 17 control mode select. | |
#define | DCMOTOR17_SEL_MODE_NORMAL 1 |
#define | DCMOTOR17_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Functions | |
void | dcmotor17_cfg_setup (dcmotor17_cfg_t *cfg) |
DC Motor 17 configuration object setup function. | |
err_t | dcmotor17_init (dcmotor17_t *ctx, dcmotor17_cfg_t *cfg) |
DC Motor 17 initialization function. | |
void | dcmotor17_default_cfg (dcmotor17_t *ctx) |
DC Motor 17 default configuration function. | |
void | dcmotor17_standby_mode (dcmotor17_t *ctx) |
DC Motor 17 set to standby operating mode function. | |
void | dcmotor17_normal_mode (dcmotor17_t *ctx) |
DC Motor 17 set to normal operating mode function. | |
dcmotor17_retval_t | dcmotor17_set_mode (dcmotor17_t *ctx, uint8_t op_mode) |
DC Motor 17 set operating mode function. | |
dcmotor17_retval_t | dcmotor17_stop (dcmotor17_t *ctx, uint8_t sel_out) |
DC Motor 17 stop motor function. | |
dcmotor17_retval_t | dcmotor17_forward (dcmotor17_t *ctx, uint8_t sel_out) |
DC Motor 17 forward function. | |
dcmotor17_retval_t | dcmotor17_reverse (dcmotor17_t *ctx, uint8_t sel_out) |
DC Motor 17 reverse function. | |
This file contains API for DC Motor 17 Click Driver.