STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
fsw::t7::T7Device Class Referenceabstract

The device seam. More...

#include <T7Stream.hpp>

Inheritance diagram for fsw::t7::T7Device:
[legend]

Classes

struct  Backlog

Public Member Functions

virtual ~T7Device ()=default
virtual void open (const std::string &ip)=0
virtual int64_t serial_number ()=0
virtual void write_names (const std::vector< std::string > &names, const std::vector< double > &values)=0
virtual std::vector< double > read_names (const std::vector< std::string > &names)=0
 Command-response reads; only valid while no stream is running.
virtual double stream_start (const std::vector< std::string > &scan_names, int scans_per_read, double scan_rate_hz)=0
 Starts the stream; returns the scan rate the device will actually run at.
virtual Backlog stream_read (std::vector< double > &data)=0
 Fills data with scans_per_read scans, channels interleaved.
virtual void stream_stop ()=0
virtual void close ()=0

Detailed Description

The device seam.

Every call may throw T7Error.

Definition at line 75 of file T7Stream.hpp.

Constructor & Destructor Documentation

◆ ~T7Device()

virtual fsw::t7::T7Device::~T7Device ( )
virtualdefault

Member Function Documentation

◆ close()

virtual void fsw::t7::T7Device::close ( )
pure virtual

◆ open()

virtual void fsw::t7::T7Device::open ( const std::string & ip)
pure virtual

◆ read_names()

virtual std::vector< double > fsw::t7::T7Device::read_names ( const std::vector< std::string > & names)
pure virtual

Command-response reads; only valid while no stream is running.

Implemented in FakeT7Device, fsw::t7::FakeT7Device, and fsw::t7::LjmT7Device.

◆ serial_number()

virtual int64_t fsw::t7::T7Device::serial_number ( )
pure virtual

◆ stream_read()

virtual Backlog fsw::t7::T7Device::stream_read ( std::vector< double > & data)
pure virtual

Fills data with scans_per_read scans, channels interleaved.

Blocks until they arrive.

Implemented in FakeT7Device, fsw::t7::FakeT7Device, and fsw::t7::LjmT7Device.

◆ stream_start()

virtual double fsw::t7::T7Device::stream_start ( const std::vector< std::string > & scan_names,
int scans_per_read,
double scan_rate_hz )
pure virtual

Starts the stream; returns the scan rate the device will actually run at.

Implemented in FakeT7Device, fsw::t7::FakeT7Device, and fsw::t7::LjmT7Device.

◆ stream_stop()

virtual void fsw::t7::T7Device::stream_stop ( )
pure virtual

◆ write_names()

virtual void fsw::t7::T7Device::write_names ( const std::vector< std::string > & names,
const std::vector< double > & values )
pure virtual

The documentation for this class was generated from the following file: