grblHAL core  20250320
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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  status_code_t {
  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_UnexpectedDemarcation = 57 , Status_SDMountError = 60 , Status_FileReadError = 61 ,
  Status_FsFailedOpenDir = 62 , Status_FSDirNotFound = 63 , Status_SDNotMounted = 64 , Status_FsNotMounted = 65 ,
  Status_FsReadOnly = 66 , 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_FileOpenFailed = 84 ,
  Status_StatusMax = Status_FlowControlOutOfMemory , Status_UserException = 253 , Status_Handled , Status_Unhandled
}
 

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

◆ status_code_t

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_UnexpectedDemarcation 
Status_SDMountError 
Status_FileReadError 
Status_FsFailedOpenDir 
Status_FSDirNotFound 
Status_SDNotMounted 
Status_FsNotMounted 
Status_FsReadOnly 
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_FileOpenFailed 
Status_StatusMax 
Status_UserException 
Status_Handled 
Status_Unhandled 

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)