37#ifndef AntikernelLabsILA_h
38#define AntikernelLabsILA_h
70 virtual void SetChannelCoupling(
size_t i, OscilloscopeChannel::CouplingType type)
override;
80 virtual void SetChannelOffset(
size_t i,
size_t stream,
float offset)
override;
87 virtual void Start()
override;
89 virtual void Stop()
override;
98 virtual std::set<InterleaveConflict> GetInterleaveConflicts()
override;
125 std::vector<uint32_t> m_channelWidths;
126 std::vector<uint32_t> m_channelStarts;
135 static std::vector<SCPIInstrumentModel> GetDriverSupportedModels()
139 {
"ila", {{ SCPITransportType::TRANSPORT_LAN,
"localhost:5025" }}}
Protocol analyzer driver for Linux SocketCAN API.
Definition AntikernelLabsILA.h:48
virtual void SetSampleRate(uint64_t rate) override
Sets the sample rate of the scope, in Hz.
Definition AntikernelLabsILA.cpp:471
virtual std::string GetProbeName(size_t i) override
Returns the name of the probe connected to the scope, if possible.
Definition AntikernelLabsILA.cpp:168
virtual bool HasInterleavingControls() override
Returns true if the scope has a user controllable interleaving feature, false if not.
Definition AntikernelLabsILA.cpp:452
virtual bool IsInterleaving() override
Checks if the scope is currently combining channels.
Definition AntikernelLabsILA.cpp:491
virtual OscilloscopeChannel::CouplingType GetChannelCoupling(size_t i) override
Gets the coupling used for an input channel.
Definition AntikernelLabsILA.cpp:150
virtual void Start() override
Starts the instrument in continuous trigger mode.
Definition AntikernelLabsILA.cpp:391
virtual void PullTrigger() override
Updates m_trigger with any changes made from the instrument side.
Definition AntikernelLabsILA.cpp:501
virtual std::vector< uint64_t > GetSampleRatesNonInterleaved() override
Get the legal sampling rates (in Hz) for this scope in all-channels mode.
Definition AntikernelLabsILA.cpp:422
virtual unsigned int GetChannelBandwidthLimit(size_t i) override
Gets the bandwidth limit for an input channel.
Definition AntikernelLabsILA.cpp:178
virtual void PushTrigger() override
Pushes changes made to m_trigger to the instrument.
Definition AntikernelLabsILA.cpp:525
virtual Oscilloscope::TriggerMode PollTrigger() override
Checks the curent trigger status.
Definition AntikernelLabsILA.cpp:213
virtual void SetChannelVoltageRange(size_t i, size_t stream, float range) override
Sets the range of the current channel configuration.
Definition AntikernelLabsILA.cpp:198
uint64_t m_srate
Sample rate, in Hz.
Definition AntikernelLabsILA.h:120
virtual std::vector< uint64_t > GetSampleDepthsNonInterleaved() override
Get the legal memory depths for this scope in all-channels mode.
Definition AntikernelLabsILA.cpp:440
virtual bool AcquireData() override
Pull data from the instrument.
Definition AntikernelLabsILA.cpp:227
virtual std::vector< uint64_t > GetSampleDepthsInterleaved() override
Get the legal memory depths for this scope in combined-channels mode.
Definition AntikernelLabsILA.cpp:447
uint32_t m_wordsPerRowRounded
Number of words per row of sample data.
Definition AntikernelLabsILA.h:129
virtual std::vector< OscilloscopeChannel::CouplingType > GetAvailableCouplings(size_t i) override
Gets the set of legal coupling values for an input channel.
Definition AntikernelLabsILA.cpp:144
virtual void Stop() override
Stops triggering.
Definition AntikernelLabsILA.cpp:405
virtual bool IsTriggerArmed() override
Checks if the trigger is currently armed.
Definition AntikernelLabsILA.cpp:417
virtual bool SetInterleaving(bool combine) override
Configures the scope to combine channels.
Definition AntikernelLabsILA.cpp:496
uint64_t m_period
Sample period, in fs.
Definition AntikernelLabsILA.h:117
static std::string GetDriverNameInternal()
Return the constant driver name.
Definition AntikernelLabsILA.cpp:104
virtual void SetSampleDepth(uint64_t depth) override
Sets the sample depth of the scope.
Definition AntikernelLabsILA.cpp:467
virtual int64_t GetTriggerOffset() override
Gets the trigger offset.
Definition AntikernelLabsILA.cpp:486
virtual std::vector< unsigned int > GetChannelBandwidthLimiters(size_t i) override
Gets the set of available bandwidth limiters for an input channel.
Definition AntikernelLabsILA.cpp:187
virtual uint64_t GetSampleRate() override
Gets the current sampling rate (in Hz) of this scope.
Definition AntikernelLabsILA.cpp:457
virtual float GetChannelOffset(size_t i, size_t stream) override
Gets the offset, in volts, for a given channel.
Definition AntikernelLabsILA.cpp:202
virtual void SetTriggerOffset(int64_t offset) override
Sets the trigger offset.
Definition AntikernelLabsILA.cpp:476
virtual uint64_t GetSampleDepth() override
Gets the current sample depth of this scope.
Definition AntikernelLabsILA.cpp:462
virtual OscilloscopeChannel * GetExternalTrigger() override
Returns the external trigger input channel, if we have one.
Definition AntikernelLabsILA.cpp:126
virtual void SetChannelCoupling(size_t i, OscilloscopeChannel::CouplingType type) override
Sets the coupling used for an input channel.
Definition AntikernelLabsILA.cpp:155
virtual std::vector< uint64_t > GetSampleRatesInterleaved() override
Get the legal sampling rates (in Hz) for this scope in combined-channels mode.
Definition AntikernelLabsILA.cpp:429
virtual void EnableChannel(size_t i) override
Turn a channel on, given the index.
Definition AntikernelLabsILA.cpp:136
virtual void SetChannelOffset(size_t i, size_t stream, float offset) override
Sets the offset for a given channel.
Definition AntikernelLabsILA.cpp:207
uint32_t m_memDepth
Memory depth.
Definition AntikernelLabsILA.h:114
virtual void ForceTrigger() override
Forces a single acquisition as soon as possible.
Definition AntikernelLabsILA.cpp:412
virtual void FlushConfigCache() override
Instruments are allowed to cache configuration settings to reduce round trip queries to the device.
Definition AntikernelLabsILA.cpp:122
virtual bool IsDigitalThresholdConfigurable() override
Checks if digital input threshold is configurable or fixed.
Definition AntikernelLabsILA.cpp:173
virtual double GetChannelAttenuation(size_t i) override
Gets the probe attenuation for an input channel.
Definition AntikernelLabsILA.cpp:159
virtual float GetChannelVoltageRange(size_t i, size_t stream) override
Gets the range of the current channel configuration.
Definition AntikernelLabsILA.cpp:193
uint32_t m_triggerWordPosition
Trigger position.
Definition AntikernelLabsILA.h:123
virtual void SetChannelAttenuation(size_t i, double atten) override
Sets the probe attenuation used for an input channel.
Definition AntikernelLabsILA.cpp:164
virtual void DisableChannel(size_t i) override
Turn a channel off, given the index.
Definition AntikernelLabsILA.cpp:140
virtual void StartSingleTrigger() override
Arms the trigger for a single acquistion.
Definition AntikernelLabsILA.cpp:398
virtual unsigned int GetInstrumentTypes() const override
Returns a bitfield describing the set of instrument types that this instrument supports.
Definition AntikernelLabsILA.cpp:109
virtual void SetChannelBandwidthLimit(size_t i, unsigned int limit_mhz) override
Sets the bandwidth limit for an input channel.
Definition AntikernelLabsILA.cpp:183
virtual uint32_t GetInstrumentTypesForChannel(size_t i) const override
Returns a bitfield describing the set of instrument types that a given channel supports.
Definition AntikernelLabsILA.cpp:114
virtual bool IsChannelEnabled(size_t i) override
Checks if a channel is enabled in hardware.
Definition AntikernelLabsILA.cpp:131
Simple edge trigger.
Definition EdgeTrigger.h:44
A single channel on an oscilloscope.
Definition OscilloscopeChannel.h:49
TriggerMode
Definition Oscilloscope.h:398
An SCPI-based oscilloscope.
Definition SCPIOscilloscope.h:38
Abstraction of a transport layer for moving SCPI data between endpoints.
Definition SCPITransport.h:53