spci-pps/profiles: Support frequency control in Chroma 61604

This commit is contained in:
Alexandru Gagniuc 2015-04-29 17:33:03 -07:00 committed by Uwe Hermann
parent 4264f1c03b
commit 6c0c9dd257
1 changed files with 6 additions and 1 deletions

View 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" },