stepper10 2.1.0.0
|
This file contains API for Stepper 10 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | stepper10_s |
Stepper 10 Click context object. More... | |
struct | stepper10_cfg_t |
Stepper 10 Click configuration object. More... | |
Typedefs | |
typedef struct stepper10_s | stepper10_t |
Stepper 10 Click context object. | |
Enumerations | |
enum | stepper10_return_value_t { STEPPER10_OK = 0 , STEPPER10_ERROR = -1 } |
Stepper 10 Click return value data. More... | |
Functions | |
void | stepper10_cfg_setup (stepper10_cfg_t *cfg) |
Stepper 10 configuration object setup function. | |
err_t | stepper10_init (stepper10_t *ctx, stepper10_cfg_t *cfg) |
Stepper 10 initialization function. | |
err_t | stepper10_default_cfg (stepper10_t *ctx) |
Stepper 10 default configuration function. | |
err_t | stepper10_write_spi_bank0 (stepper10_t *ctx, uint32_t data_in) |
Stepper 10 write spi bank0 function. | |
err_t | stepper10_write_spi_bank1 (stepper10_t *ctx, uint32_t data_in) |
Stepper 10 write spi bank1 function. | |
err_t | stepper10_tca_write_reg (stepper10_t *ctx, uint8_t reg, uint8_t data_in) |
Stepper 10 tca write reg function. | |
err_t | stepper10_tca_read_reg (stepper10_t *ctx, uint8_t reg, uint8_t *data_out) |
Stepper 10 tca read reg function. | |
err_t | stepper10_get_step_mode (stepper10_t *ctx, uint8_t *mode) |
Stepper 10 get step mode function. | |
err_t | stepper10_set_step_mode (stepper10_t *ctx, uint8_t mode) |
Stepper 10 set step mode function. | |
err_t | stepper10_get_sleep_pin (stepper10_t *ctx, uint8_t *state) |
Stepper 10 get sleep pin function. | |
err_t | stepper10_set_sleep_pin (stepper10_t *ctx, uint8_t state) |
Stepper 10 set sleep pin function. | |
err_t | stepper10_get_mixed_decay (stepper10_t *ctx, uint8_t *mode) |
Stepper 10 get mixed decay function. | |
err_t | stepper10_set_mixed_decay (stepper10_t *ctx, uint8_t mode) |
Stepper 10 set mixed decay function. | |
err_t | stepper10_get_agc_pin (stepper10_t *ctx, uint8_t *state) |
Stepper 10 get agc pin function. | |
err_t | stepper10_set_agc_pin (stepper10_t *ctx, uint8_t state) |
Stepper 10 set agc pin function. | |
err_t | stepper10_select_gpio (stepper10_t *ctx) |
Stepper 10 select GPIO function. | |
err_t | stepper10_select_spi (stepper10_t *ctx) |
Stepper 10 select SPI function. | |
err_t | stepper10_get_torque (stepper10_t *ctx, uint8_t *mode) |
Stepper 10 get torque function. | |
err_t | stepper10_set_torque (stepper10_t *ctx, uint8_t mode) |
Stepper 10 set torque function. | |
err_t | stepper10_get_clim0_pin (stepper10_t *ctx, uint8_t *state) |
Stepper 10 get clim0 pin function. | |
err_t | stepper10_set_clim0_pin (stepper10_t *ctx, uint8_t state) |
Stepper 10 set clim0 pin function. | |
err_t | stepper10_get_edg_sel_pin (stepper10_t *ctx, uint8_t *state) |
Stepper 10 get edg_sel pin function. | |
err_t | stepper10_set_edg_sel_pin (stepper10_t *ctx, uint8_t state) |
Stepper 10 set edg_sel pin function. | |
err_t | stepper10_get_mo_pin (stepper10_t *ctx, uint8_t *state) |
Stepper 10 get mo pin function. | |
err_t | stepper10_get_lo_state (stepper10_t *ctx, uint8_t *state) |
Stepper 10 get LO function. | |
void | stepper10_enable_device (stepper10_t *ctx) |
Stepper 10 enable device function. | |
void | stepper10_disable_device (stepper10_t *ctx) |
Stepper 10 disable device function. | |
uint8_t | stepper10_get_int_pin (stepper10_t *ctx) |
Stepper 10 get INT pin function. | |
void | stepper10_set_direction (stepper10_t *ctx, uint8_t dir) |
Stepper 10 set direction function. | |
void | stepper10_set_rst_pin (stepper10_t *ctx, uint8_t state) |
Stepper 10 set rst pin function. | |
void | stepper10_reset_device (stepper10_t *ctx) |
Stepper 10 reset device function. | |
void | stepper10_set_step_pin (stepper10_t *ctx, uint8_t state) |
Stepper 10 set step pin function. | |
err_t | stepper10_drive_motor (stepper10_t *ctx, uint32_t steps, uint8_t speed) |
Stepper 10 driver motor function. | |
This file contains API for Stepper 10 Click Driver.
typedef struct stepper10_s stepper10_t |
Stepper 10 Click context object.
Context object definition of Stepper 10 Click driver.