stepper15 2.0.0.0
|
This file contains API for Stepper 15 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | stepper15_s |
Stepper 15 Click context object. More... | |
struct | stepper15_cfg_t |
Stepper 15 Click configuration object. More... | |
Typedefs | |
typedef struct stepper15_s | stepper15_t |
Stepper 15 Click context object. | |
Enumerations | |
enum | stepper15_return_value_t { STEPPER15_OK = 0 , STEPPER15_ERROR = -1 } |
Stepper 15 Click return value data. More... | |
Functions | |
void | stepper15_cfg_setup (stepper15_cfg_t *cfg) |
Stepper 15 configuration object setup function. | |
err_t | stepper15_init (stepper15_t *ctx, stepper15_cfg_t *cfg) |
Stepper 15 initialization function. | |
err_t | stepper15_default_cfg (stepper15_t *ctx) |
Stepper 15 default configuration function. | |
err_t | stepper15_i2c_write (stepper15_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Stepper 15 I2C writing function. | |
err_t | stepper15_i2c_read (stepper15_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Stepper 15 I2C reading function. | |
err_t | stepper15_spi_write (stepper15_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Stepper 15 SPI writing function. | |
err_t | stepper15_spi_read (stepper15_t *ctx, uint8_t reg, uint8_t *data_out) |
Stepper 15 SPI reading function. | |
void | stepper15_reset (stepper15_t *ctx) |
Stepper 15 reset function. | |
void | stepper15_motor_stop (stepper15_t *ctx) |
Stepper 15 motor stop function. | |
uint8_t | stepper15_get_interrupt (stepper15_t *ctx) |
Stepper 15 get interrupt function. | |
err_t | stepper15_make_one_step (stepper15_t *ctx, uint8_t step_speed) |
Stepper 15 make one step function. | |
err_t | stepper15_set_direction (stepper15_t *ctx, uint8_t direction) |
Stepper 15 set direction function. | |
err_t | stepper15_set_work_mode (stepper15_t *ctx, uint8_t work_mode) |
Stepper 15 set work mode function. | |
err_t | stepper15_set_output_mode (stepper15_t *ctx, uint8_t output_mode) |
Stepper 15 set output mode function. | |
err_t | stepper15_set_torque_dac (stepper15_t *ctx, uint8_t trq_data) |
Stepper 15 set torque DAC function. | |
err_t | stepper15_set_counts (stepper15_t *ctx, uint8_t counts) |
Stepper 15 set counts function. | |
uint8_t | stepper15_get_fault_condition (stepper15_t *ctx) |
Stepper 15 get fault condition function. | |
err_t | stepper15_step_by_angle (stepper15_t *ctx, uint8_t step_speed, float angle, uint16_t step_360) |
Stepper 15 step by angle function. | |
This file contains API for Stepper 15 Click Driver.
typedef struct stepper15_s stepper15_t |
Stepper 15 Click context object.
Context object definition of Stepper 15 Click driver.