]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/scpi-pps/profiles.c
spci-pps/profiles: Support frequency control in Chroma 61604
[libsigrok.git] / src / hardware / scpi-pps / profiles.c
index 7d1da16e76ef01ebf8a0c795a15690ebcc1b6409..a532e792b0aeca9034df0d0fd8e6d329d0d40c50 100644 (file)
@@ -57,12 +57,14 @@ static const uint32_t chroma_61604_devopts_cg[] = {
        SR_CONF_OVER_CURRENT_PROTECTION_THRESHOLD | SR_CONF_GET | SR_CONF_SET,
        SR_CONF_OUTPUT_VOLTAGE | SR_CONF_GET,
        SR_CONF_OUTPUT_VOLTAGE_TARGET | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST,
+       SR_CONF_OUTPUT_FREQUENCY | SR_CONF_GET,
+       SR_CONF_OUTPUT_FREQUENCY_TARGET | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST,
        SR_CONF_OUTPUT_CURRENT | SR_CONF_GET,
        SR_CONF_OUTPUT_ENABLED | SR_CONF_GET | SR_CONF_SET,
 };
 
 const struct channel_spec chroma_61604_ch[] = {
-       { "1", { 0, 300, 0.1 }, { 0, 16, 0.1 }, FREQ_DC_ONLY },
+       { "1", { 0, 300, 0.1 }, { 0, 16, 0.1 }, { 1.0, 1000.0, 0.01 } },
 };
 
 const struct channel_group_spec chroma_61604_cg[] = {
@@ -73,10 +75,13 @@ const struct scpi_command chroma_61604_cmd[] = {
        { SCPI_CMD_REMOTE, "SYST:REM" },
        { SCPI_CMD_LOCAL, "SYST:LOC" },
        { SCPI_CMD_GET_MEAS_VOLTAGE, ":FETC:VOLT:ACDC?" },
+       { SCPI_CMD_GET_MEAS_FREQUENCY, ":FETC:FREQ?" },
        { SCPI_CMD_GET_MEAS_CURRENT, ":FETC:CURR:AC?" },
        { SCPI_CMD_GET_MEAS_POWER, ":FETC:POW:AC?" },
        { SCPI_CMD_GET_VOLTAGE_TARGET, ":SOUR:VOLT:AC?" },
        { SCPI_CMD_SET_VOLTAGE_TARGET, ":SOUR:VOLT:AC %.1f" },
+       { SCPI_CMD_GET_FREQUENCY_TARGET, ":SOUR:FREQ?" },
+       { SCPI_CMD_SET_FREQUENCY_TARGET, ":SOUR:FREQ %.2f" },
        { SCPI_CMD_GET_OUTPUT_ENABLED, ":OUTP?" },
        { SCPI_CMD_SET_OUTPUT_ENABLE, ":OUTP ON" },
        { SCPI_CMD_SET_OUTPUT_DISABLE, ":OUTP OFF" },