| 412 | } |
| 413 | |
| 414 | std::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 | |
| 427 | std::vector<int> BoardShim::get_eeg_channels (int board_id, int preset) |
| 428 | { |
nothing calls this directly
no test coverage detected