dcmotor21 2.0.0.0
|
This file contains API for DC Motor 21 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | dcmotor21_t |
DC Motor 21 Click context object. More... | |
struct | dcmotor21_cfg_t |
DC Motor 21 Click configuration object. More... | |
Macros | |
#define | DCMOTOR21_OUT_LOW 0x00 |
DC Motor 21 OUT setting. | |
#define | DCMOTOR21_OUT_HIGH 0x01 |
#define | DCMOTOR21_OUT_HIGH_Z 0x02 |
#define | DCMOTOR21_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | dcmotor21_return_value_t { DCMOTOR21_OK = 0 , DCMOTOR21_ERROR = -1 } |
DC Motor 21 Click return value data. More... | |
Functions | |
void | dcmotor21_cfg_setup (dcmotor21_cfg_t *cfg) |
DC Motor 21 configuration object setup function. | |
err_t | dcmotor21_init (dcmotor21_t *ctx, dcmotor21_cfg_t *cfg) |
DC Motor 21 initialization function. | |
void | dcmotor21_default_cfg (dcmotor21_t *ctx) |
DC Motor 21 default configuration function. | |
void | dcmotor21_set_out_1 (dcmotor21_t *ctx, uint8_t state) |
DC Motor 21 set out 1 function. | |
void | dcmotor21_set_out_2 (dcmotor21_t *ctx, uint8_t state) |
DC Motor 21 set out 2 function. | |
This file contains API for DC Motor 21 Click Driver.