silentstep3 2.1.0.0
|
This file contains API for Silent Step 3 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 | silentstep3_t |
Silent Step 3 Click context object. More... | |
struct | silentstep3_cfg_t |
Silent Step 3 Click configuration object. More... | |
Enumerations | |
enum | silentstep3_return_value_t { SILENTSTEP3_OK = 0 , SILENTSTEP3_ERROR = -1 } |
Silent Step 3 Click return value data. More... | |
Functions | |
void | silentstep3_cfg_setup (silentstep3_cfg_t *cfg) |
Silent Step 3 configuration object setup function. | |
err_t | silentstep3_init (silentstep3_t *ctx, silentstep3_cfg_t *cfg) |
Silent Step 3 initialization function. | |
err_t | silentstep3_default_cfg (silentstep3_t *ctx) |
Silent Step 3 default configuration function. | |
err_t | silentstep3_write_register (silentstep3_t *ctx, uint8_t reg, uint32_t data_in, uint32_t *data_out) |
Silent Step 3 write command function. | |
err_t | silentstep3_set_step_mode (silentstep3_t *ctx, uint8_t mode) |
Silent Step 3 set step mode function. | |
void | silentstep3_enable_device (silentstep3_t *ctx) |
Silent Step 3 enable device function. | |
void | silentstep3_disable_device (silentstep3_t *ctx) |
Silent Step 3 disable device function. | |
void | silentstep3_set_direction (silentstep3_t *ctx, uint8_t dir) |
Silent Step 3 set direction function. | |
void | silentstep3_switch_direction (silentstep3_t *ctx) |
Silent Step 3 switch direction function. | |
void | silentstep3_set_step_pin (silentstep3_t *ctx, uint8_t state) |
Silent Step 3 set step pin function. | |
uint8_t | silentstep3_get_sg_pin (silentstep3_t *ctx) |
Silent Step 3 get sg pin function. | |
void | silentstep3_drive_motor (silentstep3_t *ctx, uint32_t steps, uint8_t speed) |
Silent Step 3 driver motor function. | |
This file contains API for Silent Step 3 Click Driver.