stepper17 2.1.0.0
|
This file contains API for Stepper 17 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 | stepper17_t |
Stepper 17 Click context object. More... | |
struct | stepper17_cfg_t |
Stepper 17 Click configuration object. More... | |
Enumerations | |
enum | stepper17_return_value_t { STEPPER17_OK = 0 , STEPPER17_ERROR = -1 } |
Stepper 17 Click return value data. More... | |
Functions | |
void | stepper17_cfg_setup (stepper17_cfg_t *cfg) |
Stepper 17 configuration object setup function. | |
err_t | stepper17_init (stepper17_t *ctx, stepper17_cfg_t *cfg) |
Stepper 17 initialization function. | |
err_t | stepper17_default_cfg (stepper17_t *ctx) |
Stepper 17 default configuration function. | |
err_t | stepper17_write_register (stepper17_t *ctx, uint8_t reg, uint8_t data_in) |
Stepper 17 write register function. | |
err_t | stepper17_read_register (stepper17_t *ctx, uint8_t reg, uint8_t *data_out) |
Stepper 17 read register function. | |
err_t | stepper17_get_step_mode (stepper17_t *ctx, uint8_t *mode) |
Stepper 17 get step mode function. | |
err_t | stepper17_set_step_mode (stepper17_t *ctx, uint8_t mode) |
Stepper 17 set step mode function. | |
err_t | stepper17_get_torque (stepper17_t *ctx, uint8_t *torque) |
Stepper 17 get torque function. | |
err_t | stepper17_set_torque (stepper17_t *ctx, uint8_t torque) |
Stepper 17 set torque function. | |
err_t | stepper17_get_decay (stepper17_t *ctx, uint8_t *decay) |
Stepper 17 get decay function. | |
err_t | stepper17_set_decay (stepper17_t *ctx, uint8_t decay) |
Stepper 17 set decay function. | |
err_t | stepper17_get_sleep_x_pin (stepper17_t *ctx, uint8_t *state) |
Stepper 17 get sleep x pin function. | |
err_t | stepper17_set_sleep_x_pin (stepper17_t *ctx, uint8_t state) |
Stepper 17 set sleep x pin function. | |
err_t | stepper17_get_lo1_pin (stepper17_t *ctx, uint8_t *state) |
Stepper 17 get lo1 pin function. | |
err_t | stepper17_get_lo2_pin (stepper17_t *ctx, uint8_t *state) |
Stepper 17 get lo2 pin function. | |
err_t | stepper17_get_mo_pin (stepper17_t *ctx, uint8_t *state) |
Stepper 17 get mo pin function. | |
void | stepper17_drive_motor (stepper17_t *ctx, uint32_t steps, uint8_t speed) |
Stepper 17 driver motor function. | |
void | stepper17_enable_device (stepper17_t *ctx) |
Stepper 17 enable device function. | |
void | stepper17_disable_device (stepper17_t *ctx) |
Stepper 17 disable device function. | |
void | stepper17_set_direction (stepper17_t *ctx, uint8_t dir) |
Stepper 17 set direction function. | |
void | stepper17_switch_direction (stepper17_t *ctx) |
Stepper 17 switch direction function. | |
void | stepper17_reset_device (stepper17_t *ctx) |
Stepper 17 reset device function. | |
uint8_t | stepper17_get_int_pin (stepper17_t *ctx) |
Stepper 17 get int pin function. | |
void | stepper17_set_clk_pin (stepper17_t *ctx, uint8_t state) |
Stepper 17 set clk pin function. | |
This file contains API for Stepper 17 Click Driver.