37#ifndef AntikernelLogicAnalyzer_h
38#define AntikernelLogicAnalyzer_h
57 virtual std::string
IDPing()
override;
62 virtual std::string GetName()
const override;
63 virtual std::string GetVendor()
const override;
64 virtual std::string GetSerial()
const override;
73 virtual void SetChannelCoupling(
size_t i, OscilloscopeChannel::CouplingType type)
override;
82 virtual void SetChannelOffset(
size_t i,
size_t stream,
float offset)
override;
87 virtual void Start()
override;
89 virtual void Stop()
override;
99 virtual std::set<InterleaveConflict> GetInterleaveConflicts()
override;
116 void SendCommand(uint8_t opcode);
117 void SendCommand(uint8_t opcode, uint8_t chan);
118 void SendCommand(uint8_t opcode, uint8_t chan, uint8_t arg);
119 uint8_t Read1ByteReply();
124 bool m_triggerOneShot;
126 std::vector<size_t> m_lowIndexes;
127 std::vector<size_t> m_highIndexes;
129 uint32_t m_samplePeriod;
130 uint32_t m_memoryDepth;
131 uint32_t m_memoryWidth;
135 static std::string GetDriverNameInternal();
Driver for Antikernel Labs FPGA logic analyzer core (WIP)
Definition: AntikernelLogicAnalyzer.h:48
virtual unsigned int GetInstrumentTypes() const override
Returns a bitfield describing the set of instrument types that this instrument supports.
Definition: AntikernelLogicAnalyzer.cpp:154
virtual std::string IDPing() override
Returns the instrument's identification string.
Definition: AntikernelLogicAnalyzer.cpp:107
virtual void SetChannelAttenuation(size_t i, double atten) override
Sets the probe attenuation used for an input channel.
Definition: AntikernelLogicAnalyzer.cpp:509
virtual std::vector< uint64_t > GetSampleRatesInterleaved() override
Get the legal sampling rates (in Hz) for this scope in combined-channels mode.
Definition: AntikernelLogicAnalyzer.cpp:556
virtual void SetSampleRate(uint64_t rate) override
Sets the sample rate of the scope, in Hz.
Definition: AntikernelLogicAnalyzer.cpp:600
virtual void Start() override
Starts the instrument in continuous trigger mode.
Definition: AntikernelLogicAnalyzer.cpp:445
virtual void StartSingleTrigger() override
Arms the trigger for a single acquistion.
Definition: AntikernelLogicAnalyzer.cpp:439
virtual void EnableChannel(size_t i) override
Turn a channel on, given the index.
Definition: AntikernelLogicAnalyzer.cpp:477
virtual double GetChannelAttenuation(size_t i) override
Gets the probe attenuation for an input channel.
Definition: AntikernelLogicAnalyzer.cpp:504
AntikernelLogicAnalyzer(SCPITransport *transport)
Connects to a UART and reads the stuff off it.
Definition: AntikernelLogicAnalyzer.cpp:72
virtual uint64_t GetSampleDepth() override
Gets the current sample depth of this scope.
Definition: AntikernelLogicAnalyzer.cpp:590
virtual std::string GetTransportConnectionString() override
Gets the connection string for our transport.
Definition: AntikernelLogicAnalyzer.cpp:120
virtual void PushTrigger() override
Pushes changes made to m_trigger to the instrument.
Definition: AntikernelLogicAnalyzer.cpp:646
virtual bool AcquireData() override
Pull data from the instrument.
Definition: AntikernelLogicAnalyzer.cpp:299
virtual bool IsChannelEnabled(size_t i) override
Checks if a channel is enabled in hardware.
Definition: AntikernelLogicAnalyzer.cpp:472
virtual float GetChannelVoltageRange(size_t i, size_t stream) override
Gets the range of the current channel configuration.
Definition: AntikernelLogicAnalyzer.cpp:524
virtual void Stop() override
Stops triggering.
Definition: AntikernelLogicAnalyzer.cpp:451
virtual OscilloscopeChannel::CouplingType GetChannelCoupling(size_t i) override
Gets the coupling used for an input channel.
Definition: AntikernelLogicAnalyzer.cpp:494
virtual Oscilloscope::TriggerMode PollTrigger() override
Checks the curent trigger status.
Definition: AntikernelLogicAnalyzer.cpp:278
virtual std::vector< uint64_t > GetSampleRatesNonInterleaved() override
Get the legal sampling rates (in Hz) for this scope in all-channels mode.
Definition: AntikernelLogicAnalyzer.cpp:549
virtual std::vector< uint64_t > GetSampleDepthsNonInterleaved() override
Get the legal memory depths for this scope in all-channels mode.
Definition: AntikernelLogicAnalyzer.cpp:570
virtual std::vector< uint64_t > GetSampleDepthsInterleaved() override
Get the legal memory depths for this scope in combined-channels mode.
Definition: AntikernelLogicAnalyzer.cpp:577
virtual void SetSampleDepth(uint64_t depth) override
Sets the sample depth of the scope.
Definition: AntikernelLogicAnalyzer.cpp:595
virtual void SetChannelBandwidthLimit(size_t i, unsigned int limit_mhz) override
Sets the bandwidth limit for an input channel.
Definition: AntikernelLogicAnalyzer.cpp:519
virtual uint32_t GetInstrumentTypesForChannel(size_t i) const override
Returns a bitfield describing the set of instrument types that a given channel supports.
Definition: AntikernelLogicAnalyzer.cpp:159
virtual float GetChannelOffset(size_t i, size_t stream) override
Gets the offset, in volts, for a given channel.
Definition: AntikernelLogicAnalyzer.cpp:539
virtual void PullTrigger() override
Updates m_trigger with any changes made from the instrument side.
Definition: AntikernelLogicAnalyzer.cpp:626
virtual uint64_t GetSampleRate() override
Gets the current sampling rate (in Hz) of this scope.
Definition: AntikernelLogicAnalyzer.cpp:584
virtual OscilloscopeChannel * GetExternalTrigger() override
Returns the external trigger input channel, if we have one.
Definition: AntikernelLogicAnalyzer.cpp:534
virtual void ForceTrigger() override
Forces a single acquisition as soon as possible.
Definition: AntikernelLogicAnalyzer.cpp:459
virtual int64_t GetTriggerOffset() override
Gets the trigger offset.
Definition: AntikernelLogicAnalyzer.cpp:610
virtual bool IsInterleaving() override
Checks if the scope is currently combining channels.
Definition: AntikernelLogicAnalyzer.cpp:616
virtual std::string GetTransportName() override
Gets the name of our transport.
Definition: AntikernelLogicAnalyzer.cpp:115
virtual std::vector< OscilloscopeChannel::CouplingType > GetAvailableCouplings(size_t i) override
Gets the set of legal coupling values for an input channel.
Definition: AntikernelLogicAnalyzer.cpp:487
virtual void SetChannelOffset(size_t i, size_t stream, float offset) override
Sets the offset for a given channel.
Definition: AntikernelLogicAnalyzer.cpp:544
virtual bool IsTriggerArmed() override
Checks if the trigger is currently armed.
Definition: AntikernelLogicAnalyzer.cpp:464
virtual void DisableChannel(size_t i) override
Turn a channel off, given the index.
Definition: AntikernelLogicAnalyzer.cpp:482
virtual bool SetInterleaving(bool combine) override
Configures the scope to combine channels.
Definition: AntikernelLogicAnalyzer.cpp:621
virtual void SetTriggerOffset(int64_t offset) override
Sets the trigger offset.
Definition: AntikernelLogicAnalyzer.cpp:605
virtual unsigned int GetChannelBandwidthLimit(size_t i) override
Gets the bandwidth limit for an input channel.
Definition: AntikernelLogicAnalyzer.cpp:514
virtual void SetChannelVoltageRange(size_t i, size_t stream, float range) override
Sets the range of the current channel configuration.
Definition: AntikernelLogicAnalyzer.cpp:529
virtual void SetChannelCoupling(size_t i, OscilloscopeChannel::CouplingType type) override
Sets the coupling used for an input channel.
Definition: AntikernelLogicAnalyzer.cpp:499
A single channel on an oscilloscope.
Definition: OscilloscopeChannel.h:49
Generic representation of an oscilloscope, logic analyzer, or spectrum analyzer.
Definition: Oscilloscope.h:50
TriggerMode
Definition: Oscilloscope.h:411
An SCPI-based oscilloscope.
Definition: SCPIInstrument.h:38
Abstraction of a transport layer for moving SCPI data between endpoints.
Definition: SCPITransport.h:47