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

Method call_start

src/board_controller/openbci/ganglion.cpp:781–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779}
780
781int Ganglion::call_start ()
782{
783 if (dll_loader == NULL)
784 {
785 return (int)BrainFlowExitCodes::BOARD_NOT_READY_ERROR;
786 }
787 int (*func) (void *) = (int (*) (void *))dll_loader->get_address ("start_stream");
788 if (func == NULL)
789 {
790 safe_logger (spdlog::level::err, "failed to get function address for start_stream");
791 return (int)BrainFlowExitCodes::GENERAL_ERROR;
792 }
793
794 safe_logger (spdlog::level::info, "use command {} to start streaming", start_command.c_str ());
795 int res = func ((void *)start_command.c_str ());
796 if (res != (int)GanglionLib::CustomExitCodes::STATUS_OK)
797 {
798 safe_logger (spdlog::level::err, "failed to start streaming {}", res);
799 return (int)BrainFlowExitCodes::GENERAL_ERROR;
800 }
801 return (int)BrainFlowExitCodes::STATUS_OK;
802}
803
804int Ganglion::call_stop ()
805{

Callers

nothing calls this directly

Calls 1

get_addressMethod · 0.45

Tested by

no test coverage detected