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

Method get_optical_channels

cpp_package/src/board_shim.cpp:511–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511std::vector<int> BoardShim::get_optical_channels (int board_id, int preset)
512{
513 int channels[MAX_CHANNELS];
514 int len = 0;
515 int res = ::get_optical_channels (board_id, preset, channels, &len);
516 if (res != (int)BrainFlowExitCodes::STATUS_OK)
517 {
518 throw BrainFlowException ("failed to get board info", res);
519 }
520 return std::vector<int> (channels, channels + len);
521}
522
523std::vector<int> BoardShim::get_accel_channels (int board_id, int preset)
524{

Callers

nothing calls this directly

Calls 2

get_optical_channelsFunction · 0.85
BrainFlowExceptionClass · 0.85

Tested by

no test coverage detected