| 436 | } |
| 437 | |
| 438 | int 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 | |
| 459 | int Board::get_board_data (int data_count, int preset, double *data_buf) |
| 460 | { |
nothing calls this directly
no test coverage detected