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

Method get_board_data_count

src/board_controller/board.cpp:438–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438int Board::get_board_data_count (int preset, int *result)
439{
440 if (dbs.find (preset) == dbs.end ())
441 {
442 safe_logger (spdlog::level::err,
443 "stream is not startted or no preset: {} found for this board", preset);
444 return (int)BrainFlowExitCodes::INVALID_ARGUMENTS_ERROR;
445 }
446 if (!dbs[preset])
447 {
448 return (int)BrainFlowExitCodes::EMPTY_BUFFER_ERROR;
449 }
450 if (!result)
451 {
452 return (int)BrainFlowExitCodes::INVALID_ARGUMENTS_ERROR;
453 }
454
455 *result = (int)dbs[preset]->get_data_count ();
456 return (int)BrainFlowExitCodes::STATUS_OK;
457}
458
459int Board::get_board_data (int data_count, int preset, double *data_buf)
460{

Callers

nothing calls this directly

Calls 1

get_data_countMethod · 0.80

Tested by

no test coverage detected