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

Method call_stop

src/board_controller/openbci/ganglion.cpp:804–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804int Ganglion::call_stop ()
805{
806 if (dll_loader == NULL)
807 {
808 return (int)BrainFlowExitCodes::BOARD_NOT_READY_ERROR;
809 }
810 int (*func) (void *) = (int (*) (void *))dll_loader->get_address ("stop_stream");
811 if (func == NULL)
812 {
813 safe_logger (spdlog::level::err, "failed to get function address for stop_stream");
814 return (int)BrainFlowExitCodes::GENERAL_ERROR;
815 }
816
817 int res = func ((void *)stop_command.c_str ());
818 if (res != (int)GanglionLib::CustomExitCodes::STATUS_OK)
819 {
820 safe_logger (spdlog::level::err, "failed to stop streaming {}", res);
821 return (int)BrainFlowExitCodes::GENERAL_ERROR;
822 }
823 return (int)BrainFlowExitCodes::STATUS_OK;
824}
825
826int Ganglion::call_close ()
827{

Callers

nothing calls this directly

Calls 1

get_addressMethod · 0.45

Tested by

no test coverage detected