MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / set_config_int16

Method set_config_int16

DSView/pv/deviceagent.cpp:583–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583bool DeviceAgent::set_config_int16(int key, int value, const sr_channel *ch, const sr_channel_group *cg)
584{
585 assert(_dev_handle);
586
587 GVariant *gvar = g_variant_new_int16(value);
588 int ret = ds_set_actived_device_config(ch, cg, key, gvar);
589
590 if (ret != SR_OK)
591 {
592 if (ret != SR_ERR_NA)
593 dsv_err("%s%d", "ERROR: DeviceAgent::set_config_int16, Failed to set value of config id:", key);
594 return false;
595 }
596 return true;
597}
598
599bool DeviceAgent::get_config_byte(int key, int &value, const sr_channel *ch, const sr_channel_group *cg)
600{

Callers 3

switch_work_modeMethod · 0.80
channel_checkMethod · 0.80
set_valueMethod · 0.80

Calls 1

Tested by

no test coverage detected