gnea\grbl-Mega  1.0f
Source Code Documentation ( Internal Workings )
probe.h File Reference

Go to the source code of this file.

Macros

#define PROBE_OFF   0
 Values that define the probing state machine. More...
 
#define PROBE_ACTIVE   1
 Actively watching the input pin. More...
 

Functions

void probe_init ()
 Probe pin initialization routine. More...
 
void probe_configure_invert_mask (uint8_t is_probe_away)
 Called by probe_init() and the mc_probe() routines. Sets up the probe pin invert mask to. More...
 
uint8_t probe_get_state ()
 Returns probe pin state. Triggered = true. Called by gcode parser and probe state monitor. More...
 
void probe_state_monitor ()
 Monitors probe pin state and records the system position when detected. Called by the. More...
 

Macro Definition Documentation

#define PROBE_ACTIVE   1

Actively watching the input pin.

Definition at line 25 of file probe.h.

#define PROBE_OFF   0

Values that define the probing state machine.

Probing disabled or not in use. (Must be zero.)

Definition at line 24 of file probe.h.

Function Documentation

void probe_configure_invert_mask ( uint8_t  is_probe_away)

Called by probe_init() and the mc_probe() routines. Sets up the probe pin invert mask to.

< Initialize as zero.

Definition at line 41 of file probe.c.

uint8_t probe_get_state ( )

Returns probe pin state. Triggered = true. Called by gcode parser and probe state monitor.

Returns probe pin state. Triggered = true. Called by gcode parser and probe state monitor.

Definition at line 49 of file probe.c.

void probe_init ( )

Probe pin initialization routine.

< Configure as input pins

< Enable internal pull-up resistors. Normal high operation.

< Initialize invert mask.

Definition at line 27 of file probe.c.

void probe_state_monitor ( )

Monitors probe pin state and records the system position when detected. Called by the.

NOTE: This function must be extremely efficient as to not bog down the stepper ISR.

Definition at line 55 of file probe.c.