stepper5 2.1.0.0
|
This file contains API for Stepper 5 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | stepper5_t |
Stepper 5 Click context object. More... | |
struct | stepper5_cfg_t |
Stepper 5 Click configuration object. More... | |
Enumerations | |
enum | stepper5_return_value_t { STEPPER5_OK = 0 , STEPPER5_ERROR = -1 } |
Stepper 5 Click return value data. More... | |
Functions | |
void | stepper5_cfg_setup (stepper5_cfg_t *cfg) |
Stepper 5 configuration object setup function. | |
err_t | stepper5_init (stepper5_t *ctx, stepper5_cfg_t *cfg) |
Stepper 5 initialization function. | |
err_t | stepper5_default_cfg (stepper5_t *ctx) |
Stepper 5 default configuration function. | |
void | stepper5_write_reg (stepper5_t *ctx, uint8_t reg, uint32_t data_in) |
Stepper 5 write reg function. | |
err_t | stepper5_read_reg (stepper5_t *ctx, uint8_t reg, uint32_t *data_out) |
Stepper 5 read reg function. | |
err_t | stepper5_check_com (stepper5_t *ctx) |
Stepper 5 check com function. | |
void | stepper5_enable_device (stepper5_t *ctx) |
Stepper 5 enable device function. | |
void | stepper5_disable_device (stepper5_t *ctx) |
Stepper 5 disable device function. | |
void | stepper5_set_direction (stepper5_t *ctx, uint8_t dir) |
Stepper 5 set direction function. | |
void | stepper5_switch_direction (stepper5_t *ctx) |
Stepper 5 switch direction function. | |
void | stepper5_set_step_pin (stepper5_t *ctx, uint8_t state) |
Stepper 5 set step pin function. | |
uint8_t | stepper5_get_diag_pin (stepper5_t *ctx) |
Stepper 5 get diag pin function. | |
uint8_t | stepper5_get_index_pin (stepper5_t *ctx) |
Stepper 5 get index pin function. | |
err_t | stepper5_set_toff (stepper5_t *ctx, uint8_t toff) |
Stepper 5 set toff function. | |
err_t | stepper5_set_step_res (stepper5_t *ctx, uint8_t mres) |
Stepper 5 set step res function. | |
err_t | stepper5_set_run_current (stepper5_t *ctx, uint8_t irun) |
Stepper 5 set run current function. | |
void | stepper5_drive_motor (stepper5_t *ctx, uint32_t steps, uint8_t speed) |
Stepper 5 driver motor function. | |
This file contains API for Stepper 5 Click Driver.