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

Method release_session

src/board_controller/pieeg/pieeg_board.cpp:170–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170int PIEEGBoard::release_session ()
171{
172 if (initialized)
173 {
174 if (keep_alive)
175 {
176 stop_stream ();
177 }
178 free_packages ();
179 initialized = false;
180 }
181 if (spi)
182 {
183 spi_close (spi);
184 spi_free (spi);
185 spi = NULL;
186 }
187 if (gpio_in)
188 {
189 gpio_close (gpio_in);
190 gpio_free (gpio_in);
191 gpio_in = NULL;
192 }
193
194 return (int)BrainFlowExitCodes::STATUS_OK;
195}
196
197int PIEEGBoard::config_board (std::string config, std::string &response)
198{

Callers

nothing calls this directly

Calls 1

stop_streamFunction · 0.50

Tested by

no test coverage detected