This is a modified version from the extension of USB PD(Biphase Mark Code) on the Saleae store. Code structure and most variants come from there since I'm not familiar with python.
This extension fixed some problems I met on debugging:
- Decode VDOs including VESA DP/TBT ALT mode but exclude user's defined ALT mode.
- Preamble detects error due to tStartDrive for first falling edge of Pramble.
- Hard Reset cannot detect.
- Inter-frame Gap timing check to prevent wrong detection.
To implement this, you have to decode CC channel with Mechester ANA first. With the setting below:
- Mode: BMC(FM1)
- Bit Rate: 300,000
- One Bit per Transfer **(mandatory)
Then add Mechster ANA as input of this extension. Also strongly recommend that sampling rate sets at 6.25MS/s for CC channel