stepper7 2.1.0.0
|
This file contains API for Stepper 7 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | stepper7_t |
Stepper 7 Click context object. More... | |
struct | stepper7_cfg_t |
Stepper 7 Click configuration object. More... | |
Enumerations | |
enum | stepper7_return_value_t { STEPPER7_OK = 0 , STEPPER7_ERROR = -1 } |
Stepper 7 Click return value data. More... | |
Functions | |
void | stepper7_cfg_setup (stepper7_cfg_t *cfg) |
Stepper 7 configuration object setup function. | |
err_t | stepper7_init (stepper7_t *ctx, stepper7_cfg_t *cfg) |
Stepper 7 initialization function. | |
err_t | stepper7_default_cfg (stepper7_t *ctx) |
Stepper 7 default configuration function. | |
err_t | stepper7_write_reg (stepper7_t *ctx, uint8_t reg, uint8_t data_in) |
Stepper 7 write reg function. | |
err_t | stepper7_read_reg (stepper7_t *ctx, uint8_t reg, uint8_t *data_out) |
Stepper 7 read reg function. | |
void | stepper7_set_rst_pin (stepper7_t *ctx, uint8_t state) |
Stepper 7 set rst pin function. | |
void | stepper7_reset_device (stepper7_t *ctx) |
Stepper 7 reset device function. | |
err_t | stepper7_set_phase2_pin (stepper7_t *ctx, uint8_t state) |
Stepper 7 set PHASE2 pin function. | |
err_t | stepper7_set_phase1_pin (stepper7_t *ctx, uint8_t state) |
Stepper 7 set PHASE1 pin function. | |
err_t | stepper7_set_i12_pin (stepper7_t *ctx, uint8_t state) |
Stepper 7 set I12 pin function. | |
err_t | stepper7_set_i02_pin (stepper7_t *ctx, uint8_t state) |
Stepper 7 set I02 pin function. | |
err_t | stepper7_set_i11_pin (stepper7_t *ctx, uint8_t state) |
Stepper 7 set I11 pin function. | |
err_t | stepper7_set_i01_pin (stepper7_t *ctx, uint8_t state) |
Stepper 7 set I01 pin function. | |
err_t | stepper7_enable_device (stepper7_t *ctx) |
Stepper 7 enable device function. | |
err_t | stepper7_disable_device (stepper7_t *ctx) |
Stepper 7 disable device function. | |
void | stepper7_set_step_mode (stepper7_t *ctx, uint8_t mode) |
Stepper 7 set step mode function. | |
void | stepper7_set_direction (stepper7_t *ctx, uint8_t dir) |
Stepper 7 set direction function. | |
void | stepper7_switch_direction (stepper7_t *ctx) |
Stepper 7 switch direction function. | |
err_t | stepper7_drive_motor (stepper7_t *ctx, uint32_t steps, uint8_t speed) |
Stepper 7 driver motor function. | |
This file contains API for Stepper 7 Click Driver.