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

Function is_prepared

src/board_controller/board_controller.cpp:333–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333int is_prepared (int *prepared, int board_id, const char *json_brainflow_input_params)
334{
335 std::lock_guard<std::mutex> lock (mutex);
336
337 std::pair<int, struct BrainFlowInputParams> key;
338 int res = check_board_session (board_id, json_brainflow_input_params, key, false);
339 if (res == (int)BrainFlowExitCodes::STATUS_OK)
340 {
341 *prepared = 1;
342 }
343 if (res == (int)BrainFlowExitCodes::BOARD_NOT_CREATED_ERROR)
344 {
345 *prepared = 0;
346 res = (int)BrainFlowExitCodes::STATUS_OK;
347 }
348 return res;
349}
350
351int start_stream (int buffer_size, const char *streamer_params, int board_id,
352 const char *json_brainflow_input_params)

Callers 2

is_preparedMethod · 0.85
is_preparedMethod · 0.85

Calls 1

check_board_sessionFunction · 0.85

Tested by

no test coverage detected