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

Method channel_is_enable

DSView/pv/deviceagent.cpp:231–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231bool DeviceAgent::channel_is_enable(int index)
232{
233 for (const GSList *l = get_channels(); l; l = l->next)
234 {
235 const sr_channel *const probe = (const sr_channel *)l->data;
236 if (probe->index == index)
237 return probe->enabled;
238 }
239
240 return false;
241}
242
243//---------------device config-----------/
244

Callers 1

check_trig_channelMethod · 0.80

Calls 1

get_channelsFunction · 0.85

Tested by

no test coverage detected