Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a6d02e8c87ca
Choose a base ref
...
head repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f2ee813c6491
Choose a head ref
  • 1 commit
  • 6 files changed
  • 1 contributor

Commits on Sep 23, 2020

  1. Initial implementation of I2C EEPROM protocol decode. No protocol ana…

    …lyzer support yet, just basic decode. Fixes #37.
    azonenberg committed Sep 23, 2020
    Copy the full SHA
    f2ee813 View commit details
1 change: 1 addition & 0 deletions scopeprotocols/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@ set(SCOPEPROTOCOLS_SOURCES
FrequencyMeasurement.cpp
HorizontalBathtub.cpp
I2CDecoder.cpp
I2CEepromDecoder.cpp
IBM8b10bDecoder.cpp
IPv4Decoder.cpp
JtagDecoder.cpp
7 changes: 7 additions & 0 deletions scopeprotocols/I2CDecoder.cpp
Original file line number Diff line number Diff line change
@@ -245,6 +245,13 @@ Gdk::Color I2CDecoder::GetColor(int i)
return m_standardColors[COLOR_ADDRESS];
case I2CSymbol::TYPE_DATA:
return m_standardColors[COLOR_DATA];

case I2CSymbol::TYPE_ACK:
if(s.m_data)
return m_standardColors[COLOR_IDLE];
else
return m_standardColors[COLOR_CHECKSUM_OK];

default:
return m_standardColors[COLOR_CONTROL];
}
Loading