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

Method set_config_uint16

DSView/pv/deviceagent.cpp:525–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525bool DeviceAgent::set_config_uint16(int key, int value, const sr_channel *ch, const sr_channel_group *cg)
526{
527 assert(_dev_handle);
528
529 GVariant *gvar = g_variant_new_uint16(value);
530 int ret = ds_set_actived_device_config(ch, cg, key, gvar);
531
532 if (ret != SR_OK)
533 {
534 if (ret != SR_ERR_NA)
535 dsv_err("%s%d", "ERROR: DeviceAgent::set_config_uint16, Failed to set value of config id:", key);
536 return false;
537 }
538 return true;
539}
540
541bool DeviceAgent::get_config_uint32(int key, uint32_t &value, const sr_channel *ch, const sr_channel_group *cg)
542{

Callers 7

go_vDialPreMethod · 0.80
go_vDialNextMethod · 0.80
commit_settingsMethod · 0.80
set_zero_ratioMethod · 0.80
commit_settingsMethod · 0.80
set_zero_ratioMethod · 0.80
set_valueMethod · 0.80

Calls 1

Tested by

no test coverage detected