stepper21 2.1.0.0
|
This file contains API for Stepper 21 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 | stepper21_t |
Stepper 21 Click context object. More... | |
struct | stepper21_cfg_t |
Stepper 21 Click configuration object. More... | |
Enumerations | |
enum | stepper21_return_value_t { STEPPER21_OK = 0 , STEPPER21_ERROR = -1 } |
Stepper 21 Click return value data. More... | |
Functions | |
void | stepper21_cfg_setup (stepper21_cfg_t *cfg) |
Stepper 21 configuration object setup function. | |
err_t | stepper21_init (stepper21_t *ctx, stepper21_cfg_t *cfg) |
Stepper 21 initialization function. | |
err_t | stepper21_default_cfg (stepper21_t *ctx) |
Stepper 21 default configuration function. | |
err_t | stepper21_write_register (stepper21_t *ctx, uint8_t reg, uint8_t data_in) |
Stepper 21 write register function. | |
err_t | stepper21_read_register (stepper21_t *ctx, uint8_t reg, uint8_t *data_out) |
Stepper 21 read register function. | |
err_t | stepper21_get_step_mode (stepper21_t *ctx, uint8_t *mode) |
Stepper 21 get step mode function. | |
err_t | stepper21_set_step_mode (stepper21_t *ctx, uint8_t mode) |
Stepper 21 set step mode function. | |
err_t | stepper21_get_sleep_pin (stepper21_t *ctx, uint8_t *state) |
Stepper 21 get sleep pin function. | |
err_t | stepper21_set_sleep_pin (stepper21_t *ctx, uint8_t state) |
Stepper 21 set sleep pin function. | |
err_t | stepper21_get_fault_pin (stepper21_t *ctx, uint8_t *state) |
Stepper 21 get fault pin function. | |
err_t | stepper21_get_decay_pin (stepper21_t *ctx, uint8_t *state) |
Stepper 21 get decay pin function. | |
err_t | stepper21_set_decay_pin (stepper21_t *ctx, uint8_t state) |
Stepper 21 set decay pin function. | |
err_t | stepper21_get_enable_pin (stepper21_t *ctx, uint8_t *state) |
Stepper 21 get enable pin function. | |
err_t | stepper21_set_enable_pin (stepper21_t *ctx, uint8_t state) |
Stepper 21 set enable pin function. | |
err_t | stepper21_get_home_pin (stepper21_t *ctx, uint8_t *state) |
Stepper 21 get home pin function. | |
void | stepper21_drive_motor (stepper21_t *ctx, uint32_t steps, uint8_t speed) |
Stepper 21 driver motor function. | |
err_t | stepper21_enable_device (stepper21_t *ctx) |
Stepper 21 enable device function. | |
err_t | stepper21_disable_device (stepper21_t *ctx) |
Stepper 21 disable device function. | |
void | stepper21_set_direction (stepper21_t *ctx, uint8_t dir) |
Stepper 21 set direction function. | |
void | stepper21_switch_direction (stepper21_t *ctx) |
Stepper 21 switch direction function. | |
void | stepper21_set_rst_pin (stepper21_t *ctx, uint8_t state) |
Stepper 21 set rst pin function. | |
void | stepper21_reset_device (stepper21_t *ctx) |
Stepper 21 reset device function. | |
uint8_t | stepper21_get_int_pin (stepper21_t *ctx) |
Stepper 21 get int pin function. | |
void | stepper21_set_step_pin (stepper21_t *ctx, uint8_t state) |
Stepper 21 set step pin function. | |
This file contains API for Stepper 21 Click Driver.