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

Method get_board_presets

cpp_package/src/board_shim.cpp:402–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402std::vector<int> BoardShim::get_board_presets (int board_id)
403{
404 int presets[512];
405 int len = 0;
406 int res = ::get_board_presets (board_id, presets, &len);
407 if (res != (int)BrainFlowExitCodes::STATUS_OK)
408 {
409 throw BrainFlowException ("failed to get board info", res);
410 }
411 return std::vector<int> (presets, presets + len);
412}
413
414std::string BoardShim::get_device_name (int board_id, int preset)
415{

Callers

nothing calls this directly

Calls 2

BrainFlowExceptionClass · 0.85
get_board_presetsFunction · 0.50

Tested by

no test coverage detected