forked from mstrens/grbl_controller_esp32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.h
28 lines (20 loc) · 1.09 KB
/
com.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef communication_h
#define communication_h
#include "Arduino.h"
#define STR_GRBL_BUF_MAX_SIZE 80 // size has been increased from 10 to 60 to support grbl [Msg:] Longest is [GC:....] message
void getFromGrblAndForward( void ) ; //get char from GRBL, forward them is statusprinting = PRINTING_FROM_PC and decode the data (look for "OK", for <xxxxxx> sentence
// fill machineStatus[] and mPosXYZ[]
void parseToLog(uint8_t c , uint8_t lastC) ; // do not store in log the OK and the status message.
void handleLastNumericField(void) ;
void storeGrblState(void) ;
void sendToGrbl( void ) ;
void sendFromSd(void) ;
void sendFromCmd() ;
void sendFromString() ;
void sendJogCancelAndJog(void) ;
boolean sendJogCmd(uint32_t startTime ) ; // parameter is the original time (millis) when we start a ; return true if cmd has been sent
void resetWaitOkWhenSdMillis() ;
void fillErrorMsg( const char * errorMsg ) ;
void fillAlarmMsg( const char * alarmMsg ) ;
void fillStringExecuteMsg( uint8_t buttonMessageIdx ) ;
#endif