mirror of
https://github.com/grblHAL/core.git
synced 2026-02-05 16:50:16 +08:00
66 lines
2.2 KiB
C
66 lines
2.2 KiB
C
/*
|
|
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
|