X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fscpi-pps%2Fprofiles.c;h=686987f68729368f5622d3da60d8e45d64ec1459;hb=ab939ebba60a18786b91509298bd82f28c4b8fb3;hp=cc5c0ce3c6bdd4dd637a68dc2a3a16c3411f8e4e;hpb=91ef511db2370904f8765a13e315fbddaf5ffe07;p=libsigrok.git
diff --git a/src/hardware/scpi-pps/profiles.c b/src/hardware/scpi-pps/profiles.c
index cc5c0ce3..686987f6 100644
--- a/src/hardware/scpi-pps/profiles.c
+++ b/src/hardware/scpi-pps/profiles.c
@@ -19,6 +19,7 @@
* along with this program. If not, see .
*/
+#include
#include
#include
#include "protocol.h"
@@ -30,7 +31,7 @@ static const uint32_t devopts_none[] = { };
/* Agilent/Keysight N5700A series */
static const uint32_t agilent_n5700a_devopts[] = {
- SR_CONF_CONTINUOUS | SR_CONF_SET,
+ SR_CONF_CONTINUOUS,
};
static const uint32_t agilent_n5700a_devopts_cg[] = {
@@ -43,12 +44,16 @@ static const uint32_t agilent_n5700a_devopts_cg[] = {
SR_CONF_ENABLED | SR_CONF_GET | SR_CONF_SET,
};
+static const struct channel_group_spec agilent_n5700a_cg[] = {
+ { "1", CH_IDX(0), PPS_OVP | PPS_OCP },
+};
+
static const struct channel_spec agilent_n5767a_ch[] = {
{ "1", { 0, 60, 0.0001 }, { 0, 25, 0.1 }, FREQ_DC_ONLY },
};
-static const struct channel_group_spec agilent_n5767a_cg[] = {
- { "1", CH_IDX(0), PPS_OVP | PPS_OCP },
+static const struct channel_spec agilent_n5763a_ch[] = {
+ { "1", { 0, 12.5, 0.001 }, { 0, 25, 0.01 }, FREQ_DC_ONLY },
};
/*
@@ -80,7 +85,7 @@ static const struct scpi_command agilent_n5700a_cmd[] = {
/* Chroma 61600 series AC source */
static const uint32_t chroma_61604_devopts[] = {
- SR_CONF_CONTINUOUS | SR_CONF_SET,
+ SR_CONF_CONTINUOUS,
};
static const uint32_t chroma_61604_devopts_cg[] = {
@@ -127,7 +132,7 @@ static const struct scpi_command chroma_61604_cmd[] = {
/* Chroma 62000 series DC source */
static const uint32_t chroma_62000_devopts[] = {
- SR_CONF_CONTINUOUS | SR_CONF_SET,
+ SR_CONF_CONTINUOUS,
};
static const uint32_t chroma_62000_devopts_cg[] = {
@@ -209,7 +214,7 @@ static int chroma_62000p_probe_channels(struct sr_dev_inst *sdi,
/* Rigol DP800 series */
static const uint32_t rigol_dp800_devopts[] = {
- SR_CONF_CONTINUOUS | SR_CONF_SET,
+ SR_CONF_CONTINUOUS,
SR_CONF_OVER_TEMPERATURE_PROTECTION | SR_CONF_GET | SR_CONF_SET,
};
@@ -294,7 +299,7 @@ static const struct scpi_command rigol_dp800_cmd[] = {
/* HP 663xx series */
static const uint32_t hp_6632b_devopts[] = {
- SR_CONF_CONTINUOUS | SR_CONF_SET,
+ SR_CONF_CONTINUOUS,
SR_CONF_ENABLED | SR_CONF_GET | SR_CONF_SET,
SR_CONF_VOLTAGE | SR_CONF_GET,
SR_CONF_CURRENT | SR_CONF_GET,
@@ -325,7 +330,7 @@ static const struct scpi_command hp_6632b_cmd[] = {
/* Philips/Fluke PM2800 series */
static const uint32_t philips_pm2800_devopts[] = {
- SR_CONF_CONTINUOUS | SR_CONF_SET,
+ SR_CONF_CONTINUOUS,
};
static const uint32_t philips_pm2800_devopts_cg[] = {
@@ -471,12 +476,21 @@ static const struct scpi_command philips_pm2800_cmd[] = {
};
SR_PRIV const struct scpi_pps pps_profiles[] = {
+ /* Agilent N5763A */
+ { "Agilent", "N5763A", 0,
+ ARRAY_AND_SIZE(agilent_n5700a_devopts),
+ ARRAY_AND_SIZE(agilent_n5700a_devopts_cg),
+ ARRAY_AND_SIZE(agilent_n5763a_ch),
+ ARRAY_AND_SIZE(agilent_n5700a_cg),
+ agilent_n5700a_cmd,
+ .probe_channels = NULL,
+ },
/* Agilent N5767A */
{ "Agilent", "N5767A", 0,
ARRAY_AND_SIZE(agilent_n5700a_devopts),
ARRAY_AND_SIZE(agilent_n5700a_devopts_cg),
ARRAY_AND_SIZE(agilent_n5767a_ch),
- ARRAY_AND_SIZE(agilent_n5767a_cg),
+ ARRAY_AND_SIZE(agilent_n5700a_cg),
agilent_n5700a_cmd,
.probe_channels = NULL,
},