Expand description
Decode UART, I2C and SPI from probed digital waveforms.
A waveform is a record of level changes, not a sampled grid: each entry is the level after a change, held until the next entry. The first entry is the level when recording started. All times are ticks (1 ns).
Decoders are deliberately tolerant: empty, short or out-of-order records yield no frames or best-effort frames rather than a panic. Where the protocol leaves room for interpretation the choice is documented on the decoder.
Structs§
Enums§
Functions§
- i2c
- Decode complete I2C transactions from SDA and SCL recordings.
- infer_
baud - Bit period from the shortest run, rounded to the nearest integer baud.
- spi
- Decode SPI frames from SCK, MOSI, optional MISO and CS recordings.
- uart
- Decode UART frames at
baud, or at the inferred baud whenNone.