Zephyr Project API 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stepper_tmcm3216.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright (c) 2025 Alexis Czezar C Torreno
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
10
11#ifndef ZEPHYR_INCLUDE_DRIVERS_STEPPER_TMCM3216_H_
12#define ZEPHYR_INCLUDE_DRIVERS_STEPPER_TMCM3216_H_
13
14#include <zephyr/device.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
38
46int tmcm3216_set_max_velocity(const struct device *dev, uint32_t velocity);
47
55int tmcm3216_get_max_velocity(const struct device *dev, uint32_t *velocity);
56
64int tmcm3216_set_max_acceleration(const struct device *dev, uint32_t acceleration);
65
73int tmcm3216_get_actual_velocity(const struct device *dev, int32_t *velocity);
74
82int tmcm3216_get_status(const struct device *dev, struct tmcm3216_status *status);
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif /* ZEPHYR_INCLUDE_DRIVERS_STEPPER_TMCM3216_H_ */
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__INT32_TYPE__ int32_t
Definition stdint.h:74
Main header file for stepper hardware driver API.
int tmcm3216_get_status(const struct device *dev, struct tmcm3216_status *status)
Get motor status of TMCM-3216.
int tmcm3216_set_max_acceleration(const struct device *dev, uint32_t acceleration)
Set maximum acceleration for TMCM-3216 motor.
int tmcm3216_set_max_velocity(const struct device *dev, uint32_t velocity)
Set maximum velocity for TMCM-3216 motor.
int tmcm3216_get_actual_velocity(const struct device *dev, int32_t *velocity)
Get actual velocity of TMCM-3216 motor.
int tmcm3216_get_max_velocity(const struct device *dev, uint32_t *velocity)
Get maximum velocity for TMCM-3216 motor.
Runtime device structure (in ROM) per driver instance.
Definition device.h:513
Motor status structure for TMCM-3216.
Definition stepper_tmcm3216.h:24
bool is_moving
Motor is currently moving.
Definition stepper_tmcm3216.h:32
int32_t actual_velocity
Current velocity.
Definition stepper_tmcm3216.h:36
bool right_endstop
Right limit switch active.
Definition stepper_tmcm3216.h:28
int32_t actual_position
Current position.
Definition stepper_tmcm3216.h:34
bool position_reached
Position target reached.
Definition stepper_tmcm3216.h:26
bool left_endstop
Left limit switch active.
Definition stepper_tmcm3216.h:30