dcmotor11 2.0.0.0
|
This file contains API for DC Motor 11 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | dcmotor11_t |
Click ctx object definition. More... | |
struct | dcmotor11_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | dcmotor11_cfg_setup (dcmotor11_cfg_t *cfg) |
Config Object Initialization function. | |
DCMOTOR11_RETVAL | dcmotor11_init (dcmotor11_t *ctx, dcmotor11_cfg_t *cfg) |
Initialization function. | |
void | dcmotor11_generic_write (dcmotor11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | dcmotor11_generic_read (dcmotor11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | dcmotor11_control (dcmotor11_t *ctx, uint8_t dir, uint8_t speed) |
Motor Control. | |
uint8_t | dcmotor11_get_fault (dcmotor11_t *ctx) |
Get Fault. | |
void | dcmotor11_clear_fault (dcmotor11_t *ctx, uint8_t dev_data) |
Set Fault. | |
void | dcmotor11_stop (dcmotor11_t *ctx) |
Motor Stop. | |
void | dcmotor11_break (dcmotor11_t *ctx) |
Motor Break. | |
uint8_t | dcmotor11_get_interrupt_state (dcmotor11_t *ctx) |
Interrupt state on the INT pin. | |
This file contains API for DC Motor 11 Click driver.