Function splitIntegroIntegratedEncoderErrorValue

  • Splits a 32-bit encoder error register value into its two logical components.

    The encoder returns a 32-bit integer where:

    • The upper 16 bits represent the errorCode.
    • The lower 16 bits contain debugInfo specific to that error.

    This function extracts both components and returns them as separate properties.

    Returns

    An object containing:

    • errorCode: The 16-bit error code.
    • debugInfo: The 16-bit debug information associated with the error.

    Parameters

    • registerValue: number

      The 32-bit value read from the encoder error register.

    Returns {
        debugInfo: number;
        errorCode: number;
    }

    • debugInfo: number
    • errorCode: number

Generated using TypeDoc