silentstep 2.1.0.0
|
This file contains API for Silent Step 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 | silentstep_t |
Silent Step Click context object. More... | |
struct | silentstep_cfg_t |
Silent Step Click configuration object. More... | |
Enumerations | |
enum | silentstep_return_value_t { SILENTSTEP_OK = 0 , SILENTSTEP_ERROR = -1 } |
Silent Step Click return value data. More... | |
Functions | |
void | silentstep_cfg_setup (silentstep_cfg_t *cfg) |
Silent Step configuration object setup function. | |
err_t | silentstep_init (silentstep_t *ctx, silentstep_cfg_t *cfg) |
Silent Step initialization function. | |
err_t | silentstep_default_cfg (silentstep_t *ctx) |
Silent Step default configuration function. | |
err_t | silentstep_write_reg (silentstep_t *ctx, uint8_t reg, uint32_t data_in) |
Silent Step write reg function. | |
err_t | silentstep_read_reg (silentstep_t *ctx, uint8_t reg, uint32_t *data_out) |
Silent Step read reg function. | |
err_t | silentstep_check_com (silentstep_t *ctx) |
Silent Step check com function. | |
void | silentstep_set_direction (silentstep_t *ctx, uint8_t dir) |
Silent Step set direction function. | |
void | silentstep_switch_direction (silentstep_t *ctx) |
Silent Step switch direction function. | |
void | silentstep_set_spm_pin (silentstep_t *ctx, uint8_t state) |
Silent Step set spm pin function. | |
void | silentstep_set_sdm_pin (silentstep_t *ctx, uint8_t state) |
Silent Step set sdm pin function. | |
void | silentstep_set_step_pin (silentstep_t *ctx, uint8_t state) |
Silent Step set step pin function. | |
err_t | silentstep_set_toff (silentstep_t *ctx, uint8_t toff) |
Silent Step set toff function. | |
err_t | silentstep_set_step_res (silentstep_t *ctx, uint8_t mres) |
Silent Step set step res function. | |
err_t | silentstep_set_run_current (silentstep_t *ctx, uint8_t irun) |
Silent Step set run current function. | |
void | silentstep_drive_motor (silentstep_t *ctx, uint32_t steps, uint8_t speed) |
Silent Step driver motor function. | |
This file contains API for Silent Step Click Driver.