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

Method call_stop

src/board_controller/gtec/unicorn_board.cpp:329–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329int UnicornBoard::call_stop ()
330{
331 int (*func_stop_streaming) (UNICORN_HANDLE) =
332 (int (*) (UNICORN_HANDLE))dll_loader->get_address ("UNICORN_StopAcquisition");
333 if (func_stop_streaming == NULL)
334 {
335 safe_logger (
336 spdlog::level::err, "failed to get function address for UNICORN_StopAcquisition");
337 return (int)BrainFlowExitCodes::GENERAL_ERROR;
338 }
339 int ec = func_stop_streaming (device_handle);
340 if (ec != UNICORN_ERROR_SUCCESS)
341 {
342 safe_logger (spdlog::level::err, "Error in UNICORN_StopAcquisition {}", ec);
343 return (int)BrainFlowExitCodes::GENERAL_ERROR;
344 }
345 return (int)BrainFlowExitCodes::STATUS_OK;
346}
347
348int UnicornBoard::call_close ()
349{

Callers

nothing calls this directly

Calls 1

get_addressMethod · 0.45

Tested by

no test coverage detected