I am working on CAN communication and I have come across a CAN database (.dbc) file which has one message which contains signals with both, intel & motorola byte order (Like Case 1, 2 & 3 metioned below). So I implemented a logic which handles following scenarios:
Case 1: Intel Byte Order Signals with Length <=8 bits & Motorola Byte Order Signals with Length <=8 bits
Case 2: Intel Byte Order Signals with Length >8 bits & Motorola Byte Order Signals with Length <=8 bits
Case 3: Intel Byte Order Signals with Length <=8 bits & Motorola Byte Order Signals with Length >8 bits
Now, even though the one message contains intel & motorola signals, as long as one type of byte order (intel or motorola) has length <=8 bits, as per the implemented logic I'm getting the expected results. But for the following case logic becomes more complex:
Case 4: Intel Byte Order Signals with Length >8 bits & Motorola Byte Order Signals with Length >8 bits
So I wanted to know is Case 4 a practical scenario? If yes, please suggest me generic logic to implement all above cases.