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

Go to the source code of this file.

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 the 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...
 

Variables

uint8_t probe_invert_mask
 Inverts the probe pin state depending on user settings and probing cycle mode. More...
 

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 the 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.

Variable Documentation

uint8_t probe_invert_mask

Inverts the probe pin state depending on user settings and probing cycle mode.

Definition at line 24 of file probe.c.