MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / set_config_byte

Method set_config_byte

DSView/pv/deviceagent.cpp:612–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610}
611
612bool DeviceAgent::set_config_byte(int key, int value, const sr_channel *ch, const sr_channel_group *cg)
613{
614 assert(_dev_handle);
615
616 GVariant *gvar = g_variant_new_byte((uint8_t)value);
617 int ret = ds_set_actived_device_config(ch, cg, key, gvar);
618
619 if (ret != SR_OK)
620 {
621 if (ret != SR_ERR_NA)
622 dsv_err("%s%d", "ERROR: DeviceAgent::set_config_byte, Failed to set value of config id:", key);
623 return false;
624 }
625 return true;
626}
627
628bool DeviceAgent::get_config_double(int key, double &value, const sr_channel *ch, const sr_channel_group *cg)
629{

Callers 10

commit_settingsMethod · 0.80
set_acCouplingMethod · 0.80
set_trig_ratioMethod · 0.80
commit_settingsMethod · 0.80
pos_changedMethod · 0.80
margin_changedMethod · 0.80
source_changedMethod · 0.80
check_settingMethod · 0.80
channel_changedMethod · 0.80
type_changedMethod · 0.80

Calls 1

Tested by

no test coverage detected