User manual

Programming with the PicoScope 6000 Series94
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved.ps6000pg.en r9
3.12
Enumerated types and constants
Here are the enumerated types used in the PicoScope 6000 Series SDK, as defined in
the file ps6000Api.h . We recommend that you refer to these constants by name
unless your programming language allows only numerical values.
#define PS6000_MAX_OVERSAMPLE_8BIT 256
#define PS6000_MAX_VALUE 32512
#define PS6000_MIN_VALUE -32512
#define MAX_PULSE_WIDTH_QUALIFIER_COUNT 16777215L
#define MAX_SIG_GEN_BUFFER_SIZE 16384
#define MIN_SIG_GEN_BUFFER_SIZE 10
#define MIN_DWELL_COUNT 10
#define MAX_SWEEPS_SHOTS ((1 << 30) - 1)
#define MAX_WAVEFORMS_PER_SECOND 1000000
#define MAX_ANALOGUE_OFFSET_50MV_200MV 0.500f
#define MIN_ANALOGUE_OFFSET_50MV_200MV -0.500f
#define MAX_ANALOGUE_OFFSET_500MV_2V 2.500f
#define MIN_ANALOGUE_OFFSET_500MV_2V -2.500f
#define MAX_ANALOGUE_OFFSET_5V_20V 20.f
#define MIN_ANALOGUE_OFFSET_5V_20V -20.f
#define PS6000_MAX_ETS_CYCLES 250
#define PS6000_MAX_INTERLEAVE 50
typedef enum enPS6000ExternalFrequency
{
PS6000_FREQUENCY_OFF,
PS6000_FREQUENCY_5MHZ,
PS6000_FREQUENCY_10MHZ,
PS6000_FREQUENCY_20MHZ,
PS6000_FREQUENCY_25MHZ,
PS6000_MAX_FREQUENCIES
} PS6000_EXTERNAL_FREQUENCY;
typedef enum enPS6000BandwidthLimiter
{
PS6000_BW_FULL,
PS6000_BW_20MHZ,
PS6000_BW_25MHZ,
} PS6000_BANDWIDTH_LIMITER;
typedef enum enPS6000Channel
{
PS6000_CHANNEL_A,
PS6000_CHANNEL_B,
PS6000_CHANNEL_C,
PS6000_CHANNEL_D,
PS6000_EXTERNAL,
PS6000_MAX_CHANNELS = PS6000_EXTERNAL,
PS6000_TRIGGER_AUX,
PS6000_MAX_TRIGGER_SOURCES
} PS6000_CHANNEL;
typedef enum enPS6000ChannelBufferIndex
{
PS6000_CHANNEL_A_MAX,
PS6000_CHANNEL_A_MIN,
PS6000_CHANNEL_B_MAX,
PS6000_CHANNEL_B_MIN,
PS6000_CHANNEL_C_MAX,
PS6000_CHANNEL_C_MIN,
PS6000_CHANNEL_D_MAX,
PS6000_CHANNEL_D_MIN,
PS6000_MAX_CHANNEL_BUFFERS
} PS6000_CHANNEL_BUFFER_INDEX;
typedef enum enPS6000Range
{
PS6000_10MV,
PS6000_20MV,
PS6000_50MV,
PS6000_100MV,