dcmotor14 2.0.0.0
|
This file contains API for DC MOTOR 14 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | dcmotor14_t |
Click ctx object definition. More... | |
struct | dcmotor14_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | DCMOTOR14_MAP_MIKROBUS(cfg, mikrobus) |
#define | DCMOTOR14_RETVAL uint8_t |
#define | DCMOTOR14_OK 0x00 |
#define | DCMOTOR14_INIT_ERROR 0xFF |
#define | DCMOTOR14_HIGH 1 |
#define | DCMOTOR14_LOW 0 |
Functions | |
void | dcmotor14_cfg_setup (dcmotor14_cfg_t *cfg) |
Config Object Initialization function. | |
DCMOTOR14_RETVAL | dcmotor14_init (dcmotor14_t *ctx, dcmotor14_cfg_t *cfg) |
Initialization function. | |
void | dcmotor14_set_an_state (dcmotor14_t *ctx, uint8_t state) |
Set an pin state function. | |
void | dcmotor14_set_rst_state (dcmotor14_t *ctx, uint8_t state) |
Set rst pin state function. | |
void | dcmotor14_stop (dcmotor14_t *ctx) |
Stop function. | |
void | dcmotor14_forward (dcmotor14_t *ctx) |
Forward function. | |
void | dcmotor14_reverse (dcmotor14_t *ctx) |
Reverse function. | |
void | dcmotor14_brake (dcmotor14_t *ctx) |
Brake function. | |
This file contains API for DC MOTOR 14 Click driver.
#define DCMOTOR14_HIGH 1 |
#define DCMOTOR14_LOW 0 |