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

Method get_ppg_channels

cpp_package/src/board_shim.cpp:499–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499std::vector<int> BoardShim::get_ppg_channels (int board_id, int preset)
500{
501 int channels[MAX_CHANNELS];
502 int len = 0;
503 int res = ::get_ppg_channels (board_id, preset, channels, &len);
504 if (res != (int)BrainFlowExitCodes::STATUS_OK)
505 {
506 throw BrainFlowException ("failed to get board info", res);
507 }
508 return std::vector<int> (channels, channels + len);
509}
510
511std::vector<int> BoardShim::get_optical_channels (int board_id, int preset)
512{

Callers

nothing calls this directly

Calls 2

get_ppg_channelsFunction · 0.85
BrainFlowExceptionClass · 0.85

Tested by

no test coverage detected