logic-analyzer
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions | Variables
logic_analyzer.h File Reference

Generic implementation of SUMP based logic analyzer. More...

Go to the source code of this file.

Classes

class  logic_analyzer::Sump4ByteComandArg
 4 Byte SUMP Protocol Command. The uint8Values data is provided in network format (big endian) while the internal representation is little endian on the More...
 
class  logic_analyzer::RingBuffer
 Data is captured in a ring buffer. If the buffer is full we overwrite the oldest entries.... More...
 
class  logic_analyzer::LogicAnalyzerState
 Common State information for the Logic Analyzer - provides event handling on State change. More...
 
class  logic_analyzer::AbstractCapture
 Abstract Class for Capturing Logic. Create your own subclass if you want to implement your own optimized capturing logic. Otherwise just use the provided Capture class. More...
 
class  logic_analyzer::Capture
 Default Implementation for the Capturing Logic. More...
 
class  logic_analyzer::LogicAnalyzer
 Main Logic Analyzer API using the SUMP Protocol. When you try to connect to the Logic Analzyer - SUMP calls the following requests 1) RESET, 2) ID and then 3) GET_METADATA: This is used to populate the Device! All other requests are called when you click on the capture button. More...
 

Typedefs

typedef void(* logic_analyzer::EventHandler) (Event event)
 

Enumerations

enum  logic_analyzer::Status : uint8_t { STOPPED , ARMED , TRIGGERED }
 Logic Analzyer Capturing Status.
 
enum  logic_analyzer::Event : uint8_t {
  RESET , STATUS , CAPUTRE_SIZE , CAPTURE_FREQUNCY ,
  TRIGGER_VALUES , TRIGGER_MASK , READ_DLEAY_COUNT , FLAGS
}
 Events.
 

Functions

void logic_analyzer::write (PinBitArray bits)
 writes the status of all activated pins to the capturing device
 
void logic_analyzer::write (uint32_t *buff, size_t n_samples)
 
void logic_analyzer::write (PinBitArray *buff, size_t n_samples)
 
void logic_analyzer::log (const char *fmt,...)
 Prints the content to the logger output stream.
 

Variables

PinReader * logic_analyzer::pin_reader_ptr = nullptr
 
RingBuffer * logic_analyzer::buffer_ptr = nullptr
 common access to buffer
 
Stream * logic_analyzer::logger_ptr = nullptr
 Logger Stream.
 
Stream * logic_analyzer::stream_ptr = nullptr
 Command stream.
 
class logic_analyzer::LogicAnalyzerState logic_analyzer::la_state
 

Detailed Description

Generic implementation of SUMP based logic analyzer.

Author
Phil Schatzmann