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

Go to the source code of this file.

Functions

void coolant_init ()
 Initializes coolant control pins. More...
 
uint8_t coolant_get_state ()
 Returns current coolant output state. Overrides may alter it from programmed state. More...
 
void coolant_stop ()
 Directly called by coolant_init(), coolant_set_state(), and mc_reset(), which can be at. More...
 
void coolant_set_state (uint8_t mode)
 Main program only. Immediately sets flood coolant running state and also mist coolant,. More...
 
void coolant_sync (uint8_t mode)
 G-code parser entry-point for setting coolant state. Forces a planner buffer sync and bails. More...
 

Function Documentation

uint8_t coolant_get_state ( )

Returns current coolant output state. Overrides may alter it from programmed state.

Definition at line 32 of file coolant_control.c.

void coolant_init ( )

Initializes coolant control pins.

< Configure as output pin.

< Configure as output pin.

Definition at line 24 of file coolant_control.c.

void coolant_set_state ( uint8_t  mode)

Main program only. Immediately sets flood coolant running state and also mist coolant,.

Sets the coolant pins according to state specified.

< Set to report change immediately

Definition at line 72 of file coolant_control.c.

void coolant_stop ( )

Directly called by coolant_init(), coolant_set_state(), and mc_reset(), which can be at.

Immediately disables coolant pins.

Definition at line 54 of file coolant_control.c.

void coolant_sync ( uint8_t  mode)

G-code parser entry-point for setting coolant state. Forces a planner buffer sync and bails.

G-code parser entry-point for setting coolant states. Checks for and executes additional conditions.

< Ensure coolant turns on when specified in program.

Definition at line 104 of file coolant_control.c.