MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / get_emg_channels

Method get_emg_channels

cpp_package/src/board_shim.cpp:451–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451std::vector<int> BoardShim::get_emg_channels (int board_id, int preset)
452{
453 int channels[MAX_CHANNELS];
454 int len = 0;
455 int res = ::get_emg_channels (board_id, preset, channels, &len);
456 if (res != (int)BrainFlowExitCodes::STATUS_OK)
457 {
458 throw BrainFlowException ("failed to get board info", res);
459 }
460 return std::vector<int> (channels, channels + len);
461}
462
463std::vector<int> BoardShim::get_ecg_channels (int board_id, int preset)
464{

Callers

nothing calls this directly

Calls 2

get_emg_channelsFunction · 0.85
BrainFlowExceptionClass · 0.85

Tested by

no test coverage detected