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

Method call_start

src/board_controller/gtec/unicorn_board.cpp:310–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310int UnicornBoard::call_start ()
311{
312 int (*func_start_streaming) (UNICORN_HANDLE, BOOL) =
313 (int (*) (UNICORN_HANDLE, BOOL))dll_loader->get_address ("UNICORN_StartAcquisition");
314 if (func_start_streaming == NULL)
315 {
316 safe_logger (
317 spdlog::level::err, "failed to get function address for UNICORN_StartAcquisition");
318 return (int)BrainFlowExitCodes::GENERAL_ERROR;
319 }
320 int ec = func_start_streaming (device_handle, FALSE);
321 if (ec != UNICORN_ERROR_SUCCESS)
322 {
323 safe_logger (spdlog::level::err, "Error in UNICORN_StartAcquisition {}", ec);
324 return (int)BrainFlowExitCodes::GENERAL_ERROR;
325 }
326 return (int)BrainFlowExitCodes::STATUS_OK;
327}
328
329int UnicornBoard::call_stop ()
330{

Callers

nothing calls this directly

Calls 1

get_addressMethod · 0.45

Tested by

no test coverage detected