Zephyr API Documentation 4.4.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
11
12#ifndef ZEPHYR_INCLUDE_DRIVERS_STEPPER_TMCM3216_H_
13#define ZEPHYR_INCLUDE_DRIVERS_STEPPER_TMCM3216_H_
14
21
22#include <zephyr/device.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
46
54int tmcm3216_get_max_velocity(const struct device *dev, uint32_t *velocity);
55
63int tmcm3216_get_actual_velocity(const struct device *dev, int32_t *velocity);
64
72int tmcm3216_get_status(const struct device *dev, struct tmcm3216_status *status);
73
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif /* ZEPHYR_INCLUDE_DRIVERS_STEPPER_TMCM3216_H_ */
int tmcm3216_get_status(const struct device *dev, struct tmcm3216_status *status)
Get motor status of TMCM-3216.
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.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__INT32_TYPE__ int32_t
Definition stdint.h:74
Main header file for stepper hardware driver API.
Runtime device structure (in ROM) per driver instance.
Definition device.h:513
Motor status structure for TMCM-3216.
Definition stepper_tmcm3216.h:32
bool is_moving
Motor is currently moving.
Definition stepper_tmcm3216.h:40
int32_t actual_velocity
Current velocity.
Definition stepper_tmcm3216.h:44
bool right_endstop
Right limit switch active.
Definition stepper_tmcm3216.h:36
int32_t actual_position
Current position.
Definition stepper_tmcm3216.h:42
bool position_reached
Position target reached.
Definition stepper_tmcm3216.h:34
bool left_endstop
Left limit switch active.
Definition stepper_tmcm3216.h:38