Bug: only one RX_INVERT test case was supported.
Solved by replacing explicit "if - else" statements by XOR. We now XOR the value of MSK_CONTROL with a 32 bit word that has the correct bit position set (0x00000004) to toggle RX_INVERT. This ensures that we can toggle RX_INVERT regardless of the values of any other bits in the control word.
Bug: only one RX_INVERT test case was supported. Solved by replacing explicit "if - else" statements by XOR. We now XOR the value of MSK_CONTROL with a 32 bit word that has the correct bit position set (0x00000004) to toggle RX_INVERT. This ensures that we can toggle RX_INVERT regardless of the values of any other bits in the control word.