grblHAL core  20241107
messages.h
Go to the documentation of this file.
1 /*
2  messages.h - system messages
3 
4  Part of grblHAL
5 
6  Copyright (c) 2017-2024 Terje Io
7 
8  grblHAL is free software: you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation, either version 3 of the License, or
11  (at your option) any later version.
12 
13  grblHAL is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with grblHAL. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #ifndef _MESSAGES_H_
23 #define _MESSAGES_H_
24 
25 // Define feedback message codes. Valid values (0-255).
26 typedef enum {
49  Message_Stop = 22,
52 
53 typedef enum {
60 
61 typedef struct {
64  const char *text;
65 } message_t;
66 
68 
69 #endif
message_type_t
Definition: messages.h:53
@ Message_Debug
Definition: messages.h:58
@ Message_Error
Definition: messages.h:57
@ Message_Warning
Definition: messages.h:56
@ Message_Info
Definition: messages.h:55
@ Message_Plain
Definition: messages.h:54
message_code_t
Definition: messages.h:26
@ Message_ProbeProtected
21
Definition: messages.h:48
@ Message_CycleStartToRerun
14
Definition: messages.h:41
@ Message_Stop
22
Definition: messages.h:49
@ Message_HomingCycleRequired
13
Definition: messages.h:40
@ Message_ReferenceTLOEstablished
15
Definition: messages.h:42
@ Message_AlarmLock
2
Definition: messages.h:29
@ Message_ProgramEnd
8
Definition: messages.h:35
@ Message_ExecuteTPW
20
Definition: messages.h:47
@ Message_CriticalEvent
1
Definition: messages.h:28
@ Message_MotorFault
16
Definition: messages.h:43
@ Message_SpindleRestore
10
Definition: messages.h:37
@ Message_CheckLimits
7
Definition: messages.h:34
@ Message_ProbeFailedRetry
19
Definition: messages.h:46
@ Message_NextMessage
23 - next unassigned message number.
Definition: messages.h:50
@ Message_EStop
12
Definition: messages.h:39
@ Message_None
0 - reserved, do not change value.
Definition: messages.h:27
@ Message_Enabled
4
Definition: messages.h:31
@ Message_AlarmUnlock
3
Definition: messages.h:30
@ Message_CycleStart2Continue
17
Definition: messages.h:44
@ Message_SafetyDoorAjar
6
Definition: messages.h:33
@ Message_SleepMode
11
Definition: messages.h:38
@ Message_Disabled
5
Definition: messages.h:32
@ Message_TPCycleStart2Continue
18
Definition: messages.h:45
@ Message_RestoreDefaults
9
Definition: messages.h:36
const message_t * message_get(message_code_t id)
Definition: messages.c:52
Definition: messages.h:61
const char * text
Definition: messages.h:64
message_type_t type
Definition: messages.h:63
message_code_t id
Definition: messages.h:62