grblHAL core  20240318
errors.h File Reference
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  status_detail_t
 
struct  error_details
 

Typedefs

typedef struct error_details error_details_t
 
typedef error_details_t *(* on_get_errors_ptr) (void)
 

Enumerations

enum  __attribute__ {
  Status_OK = 0 , Status_ExpectedCommandLetter = 1 , Status_BadNumberFormat = 2 , Status_InvalidStatement = 3 ,
  Status_NegativeValue = 4 , Status_HomingDisabled = 5 , Status_SettingStepPulseMin = 6 , Status_SettingReadFail = 7 ,
  Status_IdleError = 8 , Status_SystemGClock = 9 , Status_SoftLimitError = 10 , Status_Overflow = 11 ,
  Status_MaxStepRateExceeded = 12 , Status_CheckDoor = 13 , Status_LineLengthExceeded = 14 , Status_TravelExceeded = 15 ,
  Status_InvalidJogCommand = 16 , Status_SettingDisabledLaser = 17 , Status_Reset = 18 , Status_NonPositiveValue = 19 ,
  Status_GcodeUnsupportedCommand = 20 , Status_GcodeModalGroupViolation = 21 , Status_GcodeUndefinedFeedRate = 22 , Status_GcodeCommandValueNotInteger = 23 ,
  Status_GcodeAxisCommandConflict = 24 , Status_GcodeWordRepeated = 25 , Status_GcodeNoAxisWords = 26 , Status_GcodeInvalidLineNumber = 27 ,
  Status_GcodeValueWordMissing = 28 , Status_GcodeUnsupportedCoordSys = 29 , Status_GcodeG53InvalidMotionMode = 30 , Status_GcodeAxisWordsExist = 31 ,
  Status_GcodeNoAxisWordsInPlane = 32 , Status_GcodeInvalidTarget = 33 , Status_GcodeArcRadiusError = 34 , Status_GcodeNoOffsetsInPlane = 35 ,
  Status_GcodeUnusedWords = 36 , Status_GcodeG43DynamicAxisError = 37 , Status_GcodeIllegalToolTableEntry = 38 , Status_GcodeValueOutOfRange = 39 ,
  Status_GcodeToolChangePending = 40 , Status_GcodeSpindleNotRunning = 41 , Status_GcodeIllegalPlane = 42 , Status_GcodeMaxFeedRateExceeded = 43 ,
  Status_GcodeRPMOutOfRange = 44 , Status_LimitsEngaged = 45 , Status_HomingRequired = 46 , Status_GCodeToolError = 47 ,
  Status_ValueWordConflict = 48 , Status_SelfTestFailed = 49 , Status_EStop = 50 , Status_MotorFault = 51 ,
  Status_SettingValueOutOfRange = 52 , Status_SettingDisabled = 53 , Status_GcodeInvalidRetractPosition = 54 , Status_IllegalHomingConfiguration = 55 ,
  Status_GCodeCoordSystemLocked = 56 , Status_SDMountError = 60 , Status_SDReadError = 61 , Status_SDFailedOpenDir = 62 ,
  Status_SDDirNotFound = 63 , Status_SDFileEmpty = 64 , Status_BTInitError = 70 , Status_ExpressionUknownOp = 71 ,
  Status_ExpressionDivideByZero = 72 , Status_ExpressionArgumentOutOfRange = 73 , Status_ExpressionInvalidArgument = 74 , Status_ExpressionSyntaxError = 75 ,
  Status_ExpressionInvalidResult = 76 , Status_AuthenticationRequired = 77 , Status_AccessDenied = 78 , Status_NotAllowedCriticalEvent = 79 ,
  Status_FlowControlNotExecutingMacro = 80 , Status_FlowControlSyntaxError = 81 , Status_FlowControlStackOverflow = 82 , Status_FlowControlOutOfMemory = 83 ,
  Status_Unhandled , Status_StatusMax = Status_Unhandled , CoordinateSystem_G54 = 0 , CoordinateSystem_G55 ,
  CoordinateSystem_G56 , CoordinateSystem_G57 , CoordinateSystem_G58 , CoordinateSystem_G59 ,
  CoordinateSystem_G59_1 , CoordinateSystem_G59_2 , CoordinateSystem_G59_3 , N_WorkCoordinateSystems ,
  CoordinateSystem_G28 = N_WorkCoordinateSystems , CoordinateSystem_G30 , CoordinateSystem_G92 , N_CoordinateSystems
}
 

Functions

error_details_terrors_get_details (void)
 
const char * errors_get_description (status_code_t id)
 
void errors_register (error_details_t *details)
 

Typedef Documentation

◆ error_details_t

◆ on_get_errors_ptr

typedef error_details_t*(* on_get_errors_ptr) (void)

Enumeration Type Documentation

◆ __attribute__

Enumerator
Status_OK 
Status_ExpectedCommandLetter 
Status_BadNumberFormat 
Status_InvalidStatement 
Status_NegativeValue 
Status_HomingDisabled 
Status_SettingStepPulseMin 
Status_SettingReadFail 
Status_IdleError 
Status_SystemGClock 
Status_SoftLimitError 
Status_Overflow 
Status_MaxStepRateExceeded 
Status_CheckDoor 
Status_LineLengthExceeded 
Status_TravelExceeded 
Status_InvalidJogCommand 
Status_SettingDisabledLaser 
Status_Reset 
Status_NonPositiveValue 
Status_GcodeUnsupportedCommand 
Status_GcodeModalGroupViolation 
Status_GcodeUndefinedFeedRate 
Status_GcodeCommandValueNotInteger 
Status_GcodeAxisCommandConflict 
Status_GcodeWordRepeated 
Status_GcodeNoAxisWords 
Status_GcodeInvalidLineNumber 
Status_GcodeValueWordMissing 
Status_GcodeUnsupportedCoordSys 
Status_GcodeG53InvalidMotionMode 
Status_GcodeAxisWordsExist 
Status_GcodeNoAxisWordsInPlane 
Status_GcodeInvalidTarget 
Status_GcodeArcRadiusError 
Status_GcodeNoOffsetsInPlane 
Status_GcodeUnusedWords 
Status_GcodeG43DynamicAxisError 
Status_GcodeIllegalToolTableEntry 
Status_GcodeValueOutOfRange 
Status_GcodeToolChangePending 
Status_GcodeSpindleNotRunning 
Status_GcodeIllegalPlane 
Status_GcodeMaxFeedRateExceeded 
Status_GcodeRPMOutOfRange 
Status_LimitsEngaged 
Status_HomingRequired 
Status_GCodeToolError 
Status_ValueWordConflict 
Status_SelfTestFailed 
Status_EStop 
Status_MotorFault 
Status_SettingValueOutOfRange 
Status_SettingDisabled 
Status_GcodeInvalidRetractPosition 
Status_IllegalHomingConfiguration 
Status_GCodeCoordSystemLocked 
Status_SDMountError 
Status_SDReadError 
Status_SDFailedOpenDir 
Status_SDDirNotFound 
Status_SDFileEmpty 
Status_BTInitError 
Status_ExpressionUknownOp 
Status_ExpressionDivideByZero 
Status_ExpressionArgumentOutOfRange 
Status_ExpressionInvalidArgument 
Status_ExpressionSyntaxError 
Status_ExpressionInvalidResult 
Status_AuthenticationRequired 
Status_AccessDenied 
Status_NotAllowedCriticalEvent 
Status_FlowControlNotExecutingMacro 
Status_FlowControlSyntaxError 
Status_FlowControlStackOverflow 
Status_FlowControlOutOfMemory 
Status_Unhandled 
Status_StatusMax 
CoordinateSystem_G54 

0 - G54 (G12)

CoordinateSystem_G55 

1 - G55 (G12)

CoordinateSystem_G56 

2 - G56 (G12)

CoordinateSystem_G57 

3 - G57 (G12)

CoordinateSystem_G58 

4 - G58 (G12)

CoordinateSystem_G59 

5 - G59 (G12)

CoordinateSystem_G59_1 

6 - G59.1 (G12) - availability depending on COMPATIBILITY_LEVEL <= 1

CoordinateSystem_G59_2 

7 - G59.2 (G12) - availability depending on COMPATIBILITY_LEVEL <= 1

CoordinateSystem_G59_3 

8 - G59.3 (G12) - availability depending on COMPATIBILITY_LEVEL <= 1

N_WorkCoordinateSystems 

9 when COMPATIBILITY_LEVEL <= 1, 6 otherwise

CoordinateSystem_G28 

9 - G28 (G0) when COMPATIBILITY_LEVEL <= 1, 6 otherwise

CoordinateSystem_G30 

10 - G30 (G0) when COMPATIBILITY_LEVEL <= 1, 7 otherwise

CoordinateSystem_G92 

11 - G92 (G0) when COMPATIBILITY_LEVEL <= 1, 8 otherwise

N_CoordinateSystems 

12 when COMPATIBILITY_LEVEL <= 1, 9 otherwise

Function Documentation

◆ errors_get_description()

const char* errors_get_description ( status_code_t  id)

◆ errors_get_details()

error_details_t* errors_get_details ( void  )

◆ errors_register()

void errors_register ( error_details_t details)