grblHAL core  20241107
user_mcode_ptrs_t Struct Reference

Optional handlers for user defined M-codes. More...

#include <core_handlers.h>

Data Fields

user_mcode_check_ptr check
 Handler for checking if a user defined M-code is supported. More...
 
user_mcode_validate_ptr validate
 Handler for validating parameters for a user defined M-code. More...
 
user_mcode_execute_ptr execute
 Handler for executing a user defined M-code. More...
 

Detailed Description

Optional handlers for user defined M-codes.

Handlers may be chained so that several plugins can add M-codes. Chaining is achieved by saving a copy of the current user_mcode_ptrs_t struct when the plugin is initialized and calling the same handler via the copy when a M-code is not recognized.

Field Documentation

◆ check

Handler for checking if a user defined M-code is supported.

◆ execute

Handler for executing a user defined M-code.

◆ validate

Handler for validating parameters for a user defined M-code.


The documentation for this struct was generated from the following file: