| 327 | } |
| 328 | |
| 329 | int 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 | |
| 348 | int UnicornBoard::call_close () |
| 349 | { |
nothing calls this directly
no test coverage detected