beaglelogic: Add missing scan options, and cleanup.
This commit is contained in:
parent
a0e0bb4149
commit
138589b02e
|
@ -23,7 +23,12 @@
|
||||||
SR_PRIV struct sr_dev_driver beaglelogic_driver_info;
|
SR_PRIV struct sr_dev_driver beaglelogic_driver_info;
|
||||||
static struct sr_dev_driver *di = &beaglelogic_driver_info;
|
static struct sr_dev_driver *di = &beaglelogic_driver_info;
|
||||||
|
|
||||||
/* Hardware capabiities */
|
/* Scan options */
|
||||||
|
static const uint32_t scanopts[] = {
|
||||||
|
SR_CONF_NUM_LOGIC_CHANNELS,
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Hardware capabilities */
|
||||||
static const uint32_t devopts[] = {
|
static const uint32_t devopts[] = {
|
||||||
SR_CONF_LOGIC_ANALYZER,
|
SR_CONF_LOGIC_ANALYZER,
|
||||||
SR_CONF_SAMPLERATE,
|
SR_CONF_SAMPLERATE,
|
||||||
|
@ -302,6 +307,10 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
|
||||||
|
|
||||||
ret = SR_OK;
|
ret = SR_OK;
|
||||||
switch (key) {
|
switch (key) {
|
||||||
|
case SR_CONF_SCAN_OPTIONS:
|
||||||
|
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
|
||||||
|
scanopts, ARRAY_SIZE(scanopts), sizeof(uint32_t));
|
||||||
|
break;
|
||||||
case SR_CONF_DEVICE_OPTIONS:
|
case SR_CONF_DEVICE_OPTIONS:
|
||||||
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
|
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32,
|
||||||
devopts, ARRAY_SIZE(devopts), sizeof(uint32_t));
|
devopts, ARRAY_SIZE(devopts), sizeof(uint32_t));
|
||||||
|
|
Loading…
Reference in New Issue