| 308 | } |
| 309 | |
| 310 | int 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 | |
| 329 | int UnicornBoard::call_stop () |
| 330 | { |
nothing calls this directly
no test coverage detected