Prusa MINI Firmware overview
sim_motion.h
Go to the documentation of this file.
1 // sim_motion.h
2 
3 #ifndef _SIM_MOTION_H
4 #define _SIM_MOTION_H
5 
6 #include <inttypes.h>
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif //__cplusplus
11 
12 extern int32_t sim_motion_pos[4];
13 
14 extern void sim_motion_cycle(void);
15 
16 extern int sim_motion_get_diag(uint8_t axis);
17 
18 extern int sim_motion_get_min_end(uint8_t axis);
19 
20 extern int sim_motion_get_max_end(uint8_t axis);
21 
22 extern void sim_motion_set_stp(uint8_t axis, int state);
23 
24 extern void sim_motion_set_dir(uint8_t axis, int state);
25 
26 extern void sim_motion_set_ena(uint8_t axis, int state);
27 
28 extern void sim_motion_print_buff(void);
29 
30 #ifdef __cplusplus
31 }
32 #endif //__cplusplus
33 
34 #endif //_SIM_MOTION_H
sim_motion_get_min_end
int sim_motion_get_min_end(uint8_t axis)
sim_motion_get_diag
int sim_motion_get_diag(uint8_t axis)
Stepper::axis_is_moving
static FORCE_INLINE bool axis_is_moving(const AxisEnum axis)
Definition: stepper.h:381
X_AXIS
Definition: types.h:37
stepper
Stepper stepper
Definition: stepper.cpp:82
i
uint8_t i
Definition: screen_test_graph.c:72
state
static volatile fsensor_t state
Definition: filament_sensor.c:23
sim_motion_set_dir
void sim_motion_set_dir(uint8_t axis, int state)
dbg.h
sim_motion_set_ena
void sim_motion_set_ena(uint8_t axis, int state)
sim_motion_set_stp
void sim_motion_set_stp(uint8_t axis, int state)
sim_motion.h
uint8_t
const uint8_t[]
Definition: 404_html.c:3
_dbg
#define _dbg(...)
Definition: dbg.h:50
sim_motion_print_buff
void sim_motion_print_buff(void)
Y_AXIS
Definition: types.h:38
sim_motion_get_max_end
int sim_motion_get_max_end(uint8_t axis)
config.h
sim_motion_pos
int32_t sim_motion_pos[4]
sim_motion_cycle
void sim_motion_cycle(void)