|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Trinamic Stepper Controller. More...
Data Structures | |
| struct | tmc_stallguard_settings |
| Trinamic Stepper StallGuard Settings. More... | |
| struct | tmc_ramp_generator_data |
| Trinamic Stepper Ramp Generator data. More... | |
Macros | |
| #define | TMC_RAMP_VACTUAL_SHIFT 22 |
| #define | TMC_RAMP_XACTUAL_SHIFT 31 |
| #define | TMC_RAMP_DT_SPEC_GET_COMMON(node) |
| Get Trinamic Stepper Ramp Generator data from DT. | |
| #define | TMC_RAMP_DT_SPEC_GET_TMC50XX(node) |
| #define | TMC_RAMP_DT_SPEC_GET_TMC51XX(node) |
Functions | |
| int | tmc50xx_stepper_ctrl_set_ramp (const struct device *dev, const struct tmc_ramp_generator_data *ramp_data) |
| Configure Trinamic Stepper Ramp Generator. | |
| int | tmc50xx_stepper_ctrl_set_max_velocity (const struct device *dev, uint32_t velocity) |
| Set the maximum velocity of the stepper motor. | |
| void | tmc50xx_stepper_ctrl_configure_stallguard (const struct device *dev, const struct tmc_stallguard_settings *sg_settings) |
| Configure TMC50XX Stepper StallGuard settings. | |
| void | tmc51xx_stepper_ctrl_configure_stallguard (const struct device *dev, const struct tmc_stallguard_settings *sg_settings) |
| Configure TMC51XX Stepper StallGuard settings. | |
| int | tmc51xx_stepper_ctrl_set_max_velocity (const struct device *dev, uint32_t velocity) |
| Set the maximum velocity of the stepper motor. | |
Trinamic Stepper Controller.
| #define TMC_RAMP_DT_SPEC_GET_COMMON | ( | node | ) |
#include <zephyr/drivers/stepper/stepper_trinamic.h>
Get Trinamic Stepper Ramp Generator data from DT.
| node | DT node identifier |
| #define TMC_RAMP_DT_SPEC_GET_TMC50XX | ( | node | ) |
#include <zephyr/drivers/stepper/stepper_trinamic.h>
| #define TMC_RAMP_DT_SPEC_GET_TMC51XX | ( | node | ) |
#include <zephyr/drivers/stepper/stepper_trinamic.h>
| #define TMC_RAMP_VACTUAL_SHIFT 22 |
#include <zephyr/drivers/stepper/stepper_trinamic.h>
| #define TMC_RAMP_XACTUAL_SHIFT 31 |
#include <zephyr/drivers/stepper/stepper_trinamic.h>
| void tmc50xx_stepper_ctrl_configure_stallguard | ( | const struct device * | dev, |
| const struct tmc_stallguard_settings * | sg_settings ) |
#include <zephyr/drivers/stepper/stepper_trinamic.h>
Configure TMC50XX Stepper StallGuard settings.
| dev | Pointer to the stepper motor controller instance |
| sg_settings | Pointer to a struct containing the required StallGuard parameters |
#include <zephyr/drivers/stepper/stepper_trinamic.h>
Set the maximum velocity of the stepper motor.
| dev | Pointer to the stepper driver instance |
| velocity | Maximum velocity in microsteps per second. |
| -EIO | General input / output error |
| 0 | Success |
| int tmc50xx_stepper_ctrl_set_ramp | ( | const struct device * | dev, |
| const struct tmc_ramp_generator_data * | ramp_data ) |
#include <zephyr/drivers/stepper/stepper_trinamic.h>
Configure Trinamic Stepper Ramp Generator.
| dev | Pointer to the stepper motor controller instance |
| ramp_data | Pointer to a struct containing the required ramp parameters |
| -EIO | General input / output error |
| -ENOSYS | If not implemented by device driver |
| 0 | Success |
| void tmc51xx_stepper_ctrl_configure_stallguard | ( | const struct device * | dev, |
| const struct tmc_stallguard_settings * | sg_settings ) |
#include <zephyr/drivers/stepper/stepper_trinamic.h>
Configure TMC51XX Stepper StallGuard settings.
| dev | Pointer to the stepper motor controller instance |
| sg_settings | Pointer to a struct containing the required StallGuard parameters |
#include <zephyr/drivers/stepper/stepper_trinamic.h>
Set the maximum velocity of the stepper motor.
| dev | Pointer to the stepper driver instance |
| velocity | Maximum velocity in microsteps per second. |
| -EIO | General input / output error |
| 0 | Success |