stepper6 2.1.0.0
|
This file contains API for Stepper 6 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 | stepper6_s |
Stepper 6 Click context object. More... | |
struct | stepper6_cfg_t |
Stepper 6 Click configuration object. More... | |
Typedefs | |
typedef struct stepper6_s | stepper6_t |
Stepper 6 Click context object. | |
Enumerations | |
enum | stepper6_return_value_t { STEPPER6_OK = 0 , STEPPER6_ERROR = -1 } |
Stepper 6 Click return value data. More... | |
Functions | |
void | stepper6_cfg_setup (stepper6_cfg_t *cfg) |
Stepper 6 configuration object setup function. | |
err_t | stepper6_init (stepper6_t *ctx, stepper6_cfg_t *cfg) |
Stepper 6 initialization function. | |
err_t | stepper6_default_cfg (stepper6_t *ctx) |
Stepper 6 default configuration function. | |
err_t | stepper6_set_dac (stepper6_t *ctx, uint16_t dac_cmd) |
Stepper 6 set dac function. | |
err_t | stepper6_pca_write_reg (stepper6_t *ctx, uint8_t reg, uint8_t data_in) |
Stepper 6 pca write reg function. | |
err_t | stepper6_pca_read_reg (stepper6_t *ctx, uint8_t reg, uint8_t *data_out) |
Stepper 6 pca read reg function. | |
err_t | stepper6_get_trq_pin (stepper6_t *ctx, uint8_t *state) |
Stepper 6 get trq pin function. | |
err_t | stepper6_set_trq_pin (stepper6_t *ctx, uint8_t state) |
Stepper 6 set trq pin function. | |
err_t | stepper6_get_m1_pin (stepper6_t *ctx, uint8_t *state) |
Stepper 6 get M1 pin function. | |
err_t | stepper6_set_m1_pin (stepper6_t *ctx, uint8_t state) |
Stepper 6 set M1 pin function. | |
err_t | stepper6_get_m0_pin (stepper6_t *ctx, uint8_t *state) |
Stepper 6 get M0 pin function. | |
err_t | stepper6_set_m0_pin (stepper6_t *ctx, uint8_t state) |
Stepper 6 set M0 pin function. | |
err_t | stepper6_get_sleep_pin (stepper6_t *ctx, uint8_t *state) |
Stepper 6 get sleep pin function. | |
err_t | stepper6_set_sleep_pin (stepper6_t *ctx, uint8_t state) |
Stepper 6 set sleep pin function. | |
err_t | stepper6_get_fault_pin (stepper6_t *ctx, uint8_t *state) |
Stepper 6 get fault pin function. | |
void | stepper6_enable_device (stepper6_t *ctx) |
Stepper 6 enable device function. | |
void | stepper6_disable_device (stepper6_t *ctx) |
Stepper 6 disable device function. | |
void | stepper6_set_direction (stepper6_t *ctx, uint8_t dir) |
Stepper 6 set direction function. | |
void | stepper6_switch_direction (stepper6_t *ctx) |
Stepper 6 switch direction function. | |
void | stepper6_reset_pca (stepper6_t *ctx) |
Stepper 6 reset device function. | |
void | stepper6_set_rst_pin (stepper6_t *ctx, uint8_t state) |
Stepper 6 set rst pin function. | |
void | stepper6_set_step_pin (stepper6_t *ctx, uint8_t state) |
Stepper 6 set step pin function. | |
err_t | stepper6_get_step_mode (stepper6_t *ctx, uint8_t *mode) |
Stepper 6 get step mode function. | |
err_t | stepper6_set_step_mode (stepper6_t *ctx, uint8_t mode) |
Stepper 6 set step mode function. | |
void | stepper6_drive_motor (stepper6_t *ctx, uint32_t steps, uint8_t speed) |
Stepper 6 driver motor function. | |
This file contains API for Stepper 6 Click Driver.
typedef struct stepper6_s stepper6_t |
Stepper 6 Click context object.
Context object definition of Stepper 6 Click driver.