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

Go to the source code of this file.

Macros

#define COOLANT_NO_SYNC   false
 
#define COOLANT_FORCE_SYNC   true
 
#define COOLANT_STATE_DISABLE   0
 Must be zero. More...
 
#define COOLANT_STATE_FLOOD   bit(0)
 
#define COOLANT_STATE_MIST   bit(1)
 

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 ()
 Immediately disables coolant pins. More...
 
void coolant_set_state (uint8_t mode)
 Sets the coolant pins according to state specified. More...
 
void coolant_sync (uint8_t mode)
 G-code parser entry-point for setting coolant states. Checks for and executes additional conditions. More...
 

Macro Definition Documentation

#define COOLANT_FORCE_SYNC   true

Definition at line 25 of file coolant_control.h.

#define COOLANT_NO_SYNC   false

Definition at line 24 of file coolant_control.h.

#define COOLANT_STATE_DISABLE   0

Must be zero.

Definition at line 27 of file coolant_control.h.

#define COOLANT_STATE_FLOOD   bit(0)

Definition at line 28 of file coolant_control.h.

#define COOLANT_STATE_MIST   bit(1)

Definition at line 29 of file coolant_control.h.

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)

Sets the coolant pins according to state specified.

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 ( )

Immediately disables coolant pins.

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 states. Checks for and executes additional conditions.

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.