dcmotor7 2.0.0.0
|
This file contains API for DC MOTOR 7 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 | dcmotor7_t |
Click ctx object definition. More... | |
struct | dcmotor7_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | dcmotor7_cfg_setup (dcmotor7_cfg_t *cfg) |
Config Object Initialization function. | |
DCMOTOR7_RETVAL | dcmotor7_init (dcmotor7_t *ctx, dcmotor7_cfg_t *cfg) |
Initialization function. | |
void | dcmotor7_default_cfg (dcmotor7_t *ctx) |
Default Confuguration. | |
void | dcmotor7_generic_write (dcmotor7_t *ctx, uint8_t reg, uint8_t tmp) |
Generic write function. | |
void | dcmotor7_generic_read (dcmotor7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | dcmotor7_set_port (dcmotor7_t *ctx, uint8_t port, uint8_t value) |
Functions for set port. | |
void | dcmotor7_set_motor (dcmotor7_t *ctx, uint8_t motor, uint8_t in1, uint8_t in2) |
Functions for set Motor. | |
void | dcmotor7_set_tblkab (dcmotor7_t *ctx, uint8_t tblk) |
Functions for set Motor Ach and Bch Digital tBLK. | |
void | dcmotor7_set_hb_mode (dcmotor7_t *ctx, uint8_t mode) |
Functions for set H-Bridge operation mode. | |
void | dcmotor7_motor_stop (dcmotor7_t *ctx, uint8_t motor) |
Motor stop function. | |
void | dcmotor7_go_to_stand_by_mode (dcmotor7_t *ctx, uint8_t motor) |
Function for setting the motor in stand mode. | |
void | dcmotor7_set_pwm_motor_a (dcmotor7_t *ctx, uint8_t state) |
Function for set PWM value for motor A. | |
void | dcmotor7_set_pwm_motor_b (dcmotor7_t *ctx, uint8_t state) |
Function for set PWM value for motor B. | |
This file contains API for DC MOTOR 7 Click driver.