Retrieves a structured description for a specific encoder error code.
This function looks up the provided errorCode in the predefined list of known
encoder error codes and returns the corresponding description object. If the
error code is not recognized, a default description is returned.
Returns
The error description object matching the given code, or a default
description if the code is unknown.
Parameters
errorCode: number
The 16-bit error code extracted from the encoder register.
Retrieves a structured description for a specific encoder error code.
This function looks up the provided
errorCodein the predefined list of known encoder error codes and returns the corresponding description object. If the error code is not recognized, a default description is returned.Returns
The error description object matching the given code, or a default description if the code is unknown.