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

Method call_close

src/board_controller/openbci/ganglion.cpp:826–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824}
825
826int Ganglion::call_close ()
827{
828 if (dll_loader == NULL)
829 {
830 return (int)BrainFlowExitCodes::BOARD_NOT_READY_ERROR;
831 }
832 int (*func) (void *) = (int (*) (void *))dll_loader->get_address ("close_ganglion");
833 if (func == NULL)
834 {
835 safe_logger (spdlog::level::err, "failed to get function address for close_ganglion");
836 return (int)BrainFlowExitCodes::GENERAL_ERROR;
837 }
838
839 int res = func (NULL);
840 if (res != (int)GanglionLib::CustomExitCodes::STATUS_OK)
841 {
842 safe_logger (spdlog::level::err, "failed to close ganglion {}", res);
843 return (int)BrainFlowExitCodes::GENERAL_ERROR;
844 }
845 return (int)BrainFlowExitCodes::STATUS_OK;
846}
847
848int Ganglion::call_release ()
849{

Callers

nothing calls this directly

Calls 1

get_addressMethod · 0.45

Tested by

no test coverage detected