| 439 | } |
| 440 | |
| 441 | int get_board_data (int data_count, int preset, double *data_buf, int board_id, |
| 442 | const char *json_brainflow_input_params) |
| 443 | { |
| 444 | std::lock_guard<std::mutex> lock (mutex); |
| 445 | |
| 446 | std::pair<int, struct BrainFlowInputParams> key; |
| 447 | int res = check_board_session (board_id, json_brainflow_input_params, key, false); |
| 448 | if (res != (int)BrainFlowExitCodes::STATUS_OK) |
| 449 | { |
| 450 | return res; |
| 451 | } |
| 452 | auto board_it = boards.find (key); |
| 453 | return board_it->second->get_board_data (data_count, preset, data_buf); |
| 454 | } |
| 455 | |
| 456 | int get_board_sampling_rate ( |
| 457 | int preset, int *sampling_rate, int board_id, const char *json_brainflow_input_params) |
no test coverage detected