yarf 0.1
Yet Another RepRap Firmware
|
Implements checking the status of the endstop switches. More...
Go to the source code of this file.
Defines | |
#define | endstop_x_min() (READ(X_MIN_PIN) != X_MIN_ENDSTOP_INVERTED) |
Returns whether the x min endstop is pressed. | |
#define | endstop_y_min() (READ(Y_MIN_PIN) != Y_MIN_ENDSTOP_INVERTED) |
Returns whether the y min endstop is pressed. | |
#define | endstop_z_min() (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTED) |
Returns whether the z min endstop is pressed. | |
#define | endstop_x_max() (READ(X_MAX_PIN) != X_MAX_ENDSTOP_INVERTED) |
Returns whether the x max endstop is pressed, if such an endstop is available. | |
#define | endstop_y_max() (READ(Y_MAX_PIN) != Y_MAX_ENDSTOP_INVERTED) |
Returns whether the y max endstop is pressed, if such an endstop is available. | |
#define | endstop_z_max() (READ(Z_MAX_PIN) != Z_MAX_ENDSTOP_INVERTED) |
Returns whether the z max endstop is pressed, if such an endstop is available. | |
Functions | |
static bool | endstop_min (unsigned char axis) |
Returns whether a specific min endstop is pressed. | |
static bool | endstop_max (unsigned char axis) |
Returns whether a specific max endstop is pressed. |
Implements checking the status of the endstop switches.
Definition in file endstops.h.
#define endstop_x_max | ( | ) | (READ(X_MAX_PIN) != X_MAX_ENDSTOP_INVERTED) |
Returns whether the x max endstop is pressed, if such an endstop is available.
Returns false otherwise.
Definition at line 57 of file endstops.h.
#define endstop_y_max | ( | ) | (READ(Y_MAX_PIN) != Y_MAX_ENDSTOP_INVERTED) |
Returns whether the y max endstop is pressed, if such an endstop is available.
Returns false otherwise.
Definition at line 67 of file endstops.h.
#define endstop_z_max | ( | ) | (READ(Z_MAX_PIN) != Z_MAX_ENDSTOP_INVERTED) |
Returns whether the z max endstop is pressed, if such an endstop is available.
Returns false otherwise.
Definition at line 78 of file endstops.h.
static bool endstop_max | ( | unsigned char | axis | ) | [inline, static] |
Returns whether a specific max endstop is pressed.
axis | the axis for which to check the max endstop |
Definition at line 112 of file endstops.h.
static bool endstop_min | ( | unsigned char | axis | ) | [inline, static] |
Returns whether a specific min endstop is pressed.
axis | the axis for which to check the min endstop |
Definition at line 89 of file endstops.h.