enum io.ModbusDiagnosticSubFunc

enum ModbusDiagnosticSubFunc: uint16_t {
    ReturnQueryData                    = 0,
    RestartCommunicationsOption        = 1,
    ReturnDiagnosticRegister           = 2,
    ChangeAsciiInputDelimiter          = 3,
    ForceListenOnlyMode                = 4,
    ClearCountersAndDiagnosticRegister = 10,
    ReturnBusMessageCount              = 11,
    ReturnBusCommunicationErrorCount   = 12,
    ReturnBusExceptionErrorCount       = 13,
    ReturnServerMessageCount           = 14,
    ReturnServerNoResponseCount        = 15,
    ReturnServerNakCount               = 16,
    ReturnServerBusyCount              = 17,
    ReturnBusCharacterOverrunCount     = 18,
    ClearOverrunCounterAndFlag         = 20,
};