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

Method get_analog_channels

cpp_package/src/board_shim.cpp:559–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559std::vector<int> BoardShim::get_analog_channels (int board_id, int preset)
560{
561 int channels[MAX_CHANNELS];
562 int len = 0;
563 int res = ::get_analog_channels (board_id, preset, channels, &len);
564 if (res != (int)BrainFlowExitCodes::STATUS_OK)
565 {
566 throw BrainFlowException ("failed to get board info", res);
567 }
568 return std::vector<int> (channels, channels + len);
569}
570
571std::vector<int> BoardShim::get_other_channels (int board_id, int preset)
572{

Callers

nothing calls this directly

Calls 2

get_analog_channelsFunction · 0.85
BrainFlowExceptionClass · 0.85

Tested by

no test coverage detected