libsmu  1.0.4
Library for interfacing with ADALM1000 devices
Classes | Typedefs | Enumerations | Variables
libsmu.hpp File Reference

Main public interface. More...

#include <cstdint>
#include <array>
#include <atomic>
#include <condition_variable>
#include <functional>
#include <mutex>
#include <set>
#include <string>
#include <thread>
#include <vector>
#include <map>
#include <libusb.h>
#include <libsmu/version.hpp>

Go to the source code of this file.

Classes

struct  sl_signal_info
 Signal information. More...
 
struct  sl_channel_info
 Channel info. More...
 
struct  sl_device_info
 Device info. More...
 
class  smu::Session
 Generic session class. More...
 
class  smu::Device
 Generic device class. More...
 
class  smu::Signal
 Generic signal class. More...
 

Typedefs

typedef struct sl_signal_info sl_signal_info
 Signal information.
 
typedef struct sl_channel_info sl_channel_info
 Channel info.
 
typedef struct sl_device_info sl_device_info
 Device info.
 

Enumerations

enum  Src {
  CONSTANT, SQUARE, SAWTOOTH, STAIRSTEP,
  SINE, TRIANGLE
}
 Supported signal sources. More...
 
enum  Mode {
  HI_Z, SVMI, SIMV, HI_Z_SPLIT,
  SVMI_SPLIT, SIMV_SPLIT
}
 Supported channel modes. More...
 

Variables

const std::vector< std::vector< uint16_t > > SUPPORTED_DEVICES
 List of supported devices. The list uses the vendor and project IDs from USB information formatted as {vendor_id, product_id}. More...
 
const std::vector< std::vector< uint16_t > > SAMBA_DEVICES
 List of supported devices in SAM-BA bootloader mode. The list uses the vendor and project IDs from USB information formatted as {vendor_id, product_id}. More...
 

Detailed Description

Main public interface.

Enumeration Type Documentation

◆ Mode

enum Mode

Supported channel modes.

Enumerator
HI_Z 

Channel is floating.

SVMI 

Source voltage, measure current.

SIMV 

Source current, measure voltage.

HI_Z_SPLIT 

HI_Z with enabled switch for the input only pin added in Rev F.

SVMI_SPLIT 

SVMI with enabled switch for the input only pin added in Rev F.

SIMV_SPLIT 

SIMV with enabled switch for the input only pin added in Rev F.

◆ Src

enum Src

Supported signal sources.

Enumerator
CONSTANT 

Constant value output.

SQUARE 

Square wave output.

SAWTOOTH 

Sawtooth wave output.

STAIRSTEP 

Stairstep wave output.

SINE 

Sine wave output.

TRIANGLE 

Triangle wave output.

Variable Documentation

◆ SAMBA_DEVICES

const std::vector<std::vector<uint16_t> > SAMBA_DEVICES
Initial value:
= {
{0x03eb, 0x6124},
}

List of supported devices in SAM-BA bootloader mode. The list uses the vendor and project IDs from USB information formatted as {vendor_id, product_id}.

◆ SUPPORTED_DEVICES

const std::vector<std::vector<uint16_t> > SUPPORTED_DEVICES
Initial value:
= {
{0x0456, 0xcee2},
{0x064b, 0x784c},
}

List of supported devices. The list uses the vendor and project IDs from USB information formatted as {vendor_id, product_id}.