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

Method get_device_name

cpp_package/src/board_shim.cpp:414–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414std::string BoardShim::get_device_name (int board_id, int preset)
415{
416 char name[4096];
417 int string_len = 0;
418 int res = ::get_device_name (board_id, preset, name, &string_len, sizeof (name));
419 if (res != (int)BrainFlowExitCodes::STATUS_OK)
420 {
421 throw BrainFlowException ("failed to get board info", res);
422 }
423 std::string result (name, 0, string_len);
424 return result;
425}
426
427std::vector<int> BoardShim::get_eeg_channels (int board_id, int preset)
428{

Callers

nothing calls this directly

Calls 2

BrainFlowExceptionClass · 0.85
get_device_nameFunction · 0.50

Tested by

no test coverage detected