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

Method get_config_uint16

DSView/pv/deviceagent.cpp:512–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512bool DeviceAgent::get_config_uint16(int key, int &value, const sr_channel *ch, const sr_channel_group *cg)
513{
514 GVariant* gvar = get_config(key, ch, cg);
515
516 if (gvar != NULL) {
517 value = g_variant_get_uint16(gvar);
518 g_variant_unref(gvar);
519 return true;
520 }
521
522 return false;
523}
524
525bool DeviceAgent::set_config_uint16(int key, int value, const sr_channel *ch, const sr_channel_group *cg)
526{

Callers 6

load_settingsMethod · 0.80
get_hw_offsetMethod · 0.80
AnalogSignalMethod · 0.80
get_hw_offsetMethod · 0.80
update_device_infoMethod · 0.80
reload_valueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected