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

Function get_board_data

src/board_controller/board_controller.cpp:441–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441int 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
456int get_board_sampling_rate (
457 int preset, int *sampling_rate, int board_id, const char *json_brainflow_input_params)

Callers 3

get_board_dataMethod · 0.85
get_board_dataMethod · 0.85
get_board_dataMethod · 0.85

Calls 2

check_board_sessionFunction · 0.85
get_board_dataMethod · 0.65

Tested by

no test coverage detected