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