Added diagnostic output on calibration failure
Updated host utility to accept diagnostic data on calibration failure
Fix transmit logic when using different TX_BIT
Use proper bit mask