Flattens a PDO mapping into an array of [deviceRef, index, subindex] entries.
This function iterates over both RX and TX PDOs in the provided pdoMapping and
extracts the index and subindex from each 32-bit PDO entry using parsePdoSubItemValue.
Returns
An array where each item is a tuple [deviceRef, index, subindex].
Example
constdeviceRef = 1; constflatArray = flattenUiPdoMapping(deviceRef, uiPdoMapping); // flatArray will contain tuples like [deviceRef, 0x2012, 0x01]
Flattens a PDO mapping into an array of [deviceRef, index, subindex] entries.
This function iterates over both RX and TX PDOs in the provided
pdoMappingand extracts the index and subindex from each 32-bit PDO entry usingparsePdoSubItemValue.Returns
An array where each item is a tuple
[deviceRef, index, subindex].Example