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

Function initialize

src/board_controller/muse/muse_bglib/main.cpp:28–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28int initialize (void *param)
29{
30 if (helper != NULL)
31 {
32 return (int)BrainFlowExitCodes::ANOTHER_BOARD_IS_CREATED_ERROR;
33 }
34 std::tuple<int, struct BrainFlowInputParams, json> *info =
35 (std::tuple<int, struct BrainFlowInputParams, json> *)param;
36 helper = new MuseBGLibHelper (std::get<0> (*info), std::get<2> (*info));
37 int res = helper->initialize (std::get<1> (*info));
38 if (res != (int)BrainFlowExitCodes::STATUS_OK)
39 {
40 delete helper;
41 helper = NULL;
42 }
43 else
44 {
45 bglib_output = output;
46 }
47 return res;
48}
49
50int open_device (void *param)
51{

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.80

Tested by

no test coverage detected