Checks if a string is a valid representation of a CANopen PDO mapping entry.
A valid entry is a 32-bit hexadecimal value representing:
It accepts formats with or without the '0x' prefix (e.g., "0x60400010" or "60400010").
true if the string follows the PDO mapping entry hex format, false otherwise.
true
false
isPdoMappingEntry('0x60400010'); // trueisPdoMappingEntry('60400010'); // trueisPdoMappingEntry('invalid'); // false
The string to validate.
Generated using TypeDoc
Checks if a string is a valid representation of a CANopen PDO mapping entry.
A valid entry is a 32-bit hexadecimal value representing:
It accepts formats with or without the '0x' prefix (e.g., "0x60400010" or "60400010").
Returns
trueif the string follows the PDO mapping entry hex format,falseotherwise.Example