X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hwdriver.c;h=37edf415a554a8ffb83b08a2d099ecfa48d444cb;hb=ab988ecb237c6aa8510eaa4a53e4e3d1ba78fd9b;hp=7f820766b0cb5755ad3b46639c516d2abd6ab7c1;hpb=fa0d6afe19c3a545f3f940933ed079966525d142;p=libsigrok.git diff --git a/hwdriver.c b/hwdriver.c index 7f820766..37edf415 100644 --- a/hwdriver.c +++ b/hwdriver.c @@ -102,6 +102,22 @@ static struct sr_config_info sr_config_info_data[] = { "Number of analog probes", NULL}, {SR_CONF_MAX_UNCOMPRESSED_SAMPLES, SR_T_UINT64, "max_uncompressed_samples", "Maximum number of uncompressed samples", NULL}, + {SR_CONF_OUTPUT_VOLTAGE, SR_T_FLOAT, "output_voltage", + "Current output voltage", NULL}, + {SR_CONF_OUTPUT_VOLTAGE_MAX, SR_T_FLOAT, "output_voltage_max", + "Maximum output voltage", NULL}, + {SR_CONF_OUTPUT_CURRENT, SR_T_FLOAT, "output_current", + "Current output current", NULL}, + {SR_CONF_OUTPUT_CURRENT_MAX, SR_T_FLOAT, "output_current_max", + "Maximum output current", NULL}, + {SR_CONF_OUTPUT_ENABLED, SR_T_BOOL, "output_enabled", + "Output enabled", NULL}, + {SR_CONF_OUTPUT_CHANNEL, SR_T_CHAR, "output_channel", + "Output channel modes", NULL}, + {SR_CONF_OVER_VOLTAGE_PROTECTION, SR_T_BOOL, "ovp", + "Over-voltage protection", NULL}, + {SR_CONF_OVER_CURRENT_PROTECTION, SR_T_BOOL, "ocp", + "Over-current protection", NULL}, {0, 0, NULL, NULL, NULL}, }; @@ -110,7 +126,7 @@ static struct sr_config_info sr_config_info_data[] = { extern SR_PRIV struct sr_dev_driver appa_55ii_driver_info; #endif #ifdef HAVE_HW_ATTEN_PPS3XXX -extern SR_PRIV struct sr_dev_driver atten_pps3xxx_driver_info; +extern SR_PRIV struct sr_dev_driver atten_pps3203_driver_info; #endif #ifdef HAVE_HW_BRYMEN_DMM extern SR_PRIV struct sr_dev_driver brymen_bm857_driver_info; @@ -256,7 +272,7 @@ static struct sr_dev_driver *drivers_list[] = { &appa_55ii_driver_info, #endif #ifdef HAVE_HW_ATTEN_PPS3XXX - &atten_pps3xxx_driver_info, + &atten_pps3203_driver_info, #endif #ifdef HAVE_HW_BRYMEN_DMM &brymen_bm857_driver_info,