How saleae/sampleanalyzer works
This repository is a Saleae Logic low-level analyzer plugin demonstrating simple serial byte decoding. The workflow is: configure the input channel and bit rate, sample captured waveform bits in the analyzer worker, publish byte frames, then render/export results. It also supplies generated serial waveform data for simulation. The README documents the plugin role; source excerpts establish the runtime calls and ownership shown here.
Main entry points: SimpleSerialAnalyzer.cpp Analyzer plugin · SimpleSerialAnalyzerResults.cpp Frame and export results · SimpleSerialSimulationDataGenerator.cpp Serial waveform generator · SimpleSerialAnalyzerSettings.cpp Channel and rate settings
Components 6
Analyzer configuration
- Channel and rate settings
src/SimpleSerialAnalyzerSettings.cpp
Decode runtime
- Analyzer plugin
src/SimpleSerialAnalyzer.cpp - Serial bit sampling
src/SimpleSerialAnalyzer.cpp
Results presentation
- Frame and export results
src/SimpleSerialAnalyzerResults.cpp
Simulation
- Serial waveform generator
src/SimpleSerialSimulationDataGenerator.cpp
Other components
- Saleae Logic
Connections 8
- Saleae Logic → Analyzer plugin: loads plugin
readme.md - Analyzer plugin → Channel and rate settings: registers settings
src/SimpleSerialAnalyzer.cpp - Analyzer plugin → Serial bit sampling: runs worker
src/SimpleSerialAnalyzer.cpp - Serial bit sampling → Frame and export results: commits frames
src/SimpleSerialAnalyzer.cpp - Analyzer plugin → Frame and export results: sets up results
src/SimpleSerialAnalyzer.cpp - Analyzer plugin → Serial waveform generator: requests simulation
src/SimpleSerialAnalyzer.cpp - Serial waveform generator → Channel and rate settings: reads parameters
src/SimpleSerialSimulationDataGenerator.cpp - Frame and export results → Analyzer plugin: reads timing
src/SimpleSerialAnalyzerResults.cpp