stepper12 2.1.0.0
|
This file contains API for Stepper 12 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | stepper12_t |
Stepper 12 Click context object. More... | |
struct | stepper12_cfg_t |
Stepper 12 Click configuration object. More... | |
Enumerations | |
enum | stepper12_return_value_t { STEPPER12_OK = 0 , STEPPER12_ERROR = -1 } |
Stepper 12 Click return value data. More... | |
Functions | |
void | stepper12_cfg_setup (stepper12_cfg_t *cfg) |
Stepper 12 configuration object setup function. | |
err_t | stepper12_init (stepper12_t *ctx, stepper12_cfg_t *cfg) |
Stepper 12 initialization function. | |
err_t | stepper12_default_cfg (stepper12_t *ctx) |
Stepper 12 default configuration function. | |
err_t | stepper12_write_register (stepper12_t *ctx, uint8_t reg, uint8_t data_in) |
Stepper 12 write register function. | |
err_t | stepper12_read_register (stepper12_t *ctx, uint8_t reg, uint8_t *data_out) |
Stepper 12 read register function. | |
err_t | stepper12_get_step_mode (stepper12_t *ctx, uint8_t *mode) |
Stepper 12 get step mode function. | |
err_t | stepper12_set_step_mode (stepper12_t *ctx, uint8_t mode) |
Stepper 12 set step mode function. | |
err_t | stepper12_get_torque (stepper12_t *ctx, uint8_t *torque) |
Stepper 12 get torque function. | |
err_t | stepper12_set_torque (stepper12_t *ctx, uint8_t torque) |
Stepper 12 set torque function. | |
err_t | stepper12_get_decay_pin (stepper12_t *ctx, uint8_t *state) |
Stepper 12 get decay pin function. | |
err_t | stepper12_set_decay_pin (stepper12_t *ctx, uint8_t state) |
Stepper 12 set decay pin function. | |
err_t | stepper12_get_sleep_x_pin (stepper12_t *ctx, uint8_t *state) |
Stepper 12 get sleep x pin function. | |
err_t | stepper12_set_sleep_x_pin (stepper12_t *ctx, uint8_t state) |
Stepper 12 set sleep x pin function. | |
err_t | stepper12_get_lo_pin (stepper12_t *ctx, uint8_t *state) |
Stepper 12 get lo pin function. | |
err_t | stepper12_get_mo_pin (stepper12_t *ctx, uint8_t *state) |
Stepper 12 get mo pin function. | |
void | stepper12_drive_motor (stepper12_t *ctx, uint32_t steps, uint8_t speed) |
Stepper 12 driver motor function. | |
void | stepper12_enable_device (stepper12_t *ctx) |
Stepper 12 enable device function. | |
void | stepper12_disable_device (stepper12_t *ctx) |
Stepper 12 disable device function. | |
void | stepper12_set_direction (stepper12_t *ctx, uint8_t dir) |
Stepper 12 set direction function. | |
void | stepper12_switch_direction (stepper12_t *ctx) |
Stepper 12 switch direction function. | |
void | stepper12_reset_device (stepper12_t *ctx) |
Stepper 12 reset device function. | |
uint8_t | stepper12_get_int_pin (stepper12_t *ctx) |
Stepper 12 get int pin function. | |
void | stepper12_set_clk_pin (stepper12_t *ctx, uint8_t state) |
Stepper 12 set clk pin function. | |
This file contains API for Stepper 12 Click Driver.