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

Method call_config

src/board_controller/openbci/ganglion.cpp:759–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759int Ganglion::call_config (char *config)
760{
761 if (dll_loader == NULL)
762 {
763 return (int)BrainFlowExitCodes::BOARD_NOT_READY_ERROR;
764 }
765 int (*func) (void *) = (int (*) (void *))dll_loader->get_address ("config_board");
766 if (func == NULL)
767 {
768 safe_logger (spdlog::level::err, "failed to get function address for config_board");
769 return (int)BrainFlowExitCodes::GENERAL_ERROR;
770 }
771
772 int res = func (config);
773 if (res != GanglionLib::CustomExitCodes::STATUS_OK)
774 {
775 safe_logger (spdlog::level::err, "failed to config board {}", res);
776 return (int)BrainFlowExitCodes::GENERAL_ERROR;
777 }
778 return (int)BrainFlowExitCodes::STATUS_OK;
779}
780
781int Ganglion::call_start ()
782{

Callers

nothing calls this directly

Calls 1

get_addressMethod · 0.45

Tested by

no test coverage detected