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

Method get_board_descr

cpp_package/src/board_shim.cpp:301–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299//////////////////////////////////////////
300
301json BoardShim::get_board_descr (int board_id, int preset)
302{
303 char board_descr_str[16000];
304 int string_len = 0;
305 int res =
306 ::get_board_descr (board_id, preset, board_descr_str, &string_len, sizeof (board_descr_str));
307 if (res != (int)BrainFlowExitCodes::STATUS_OK)
308 {
309 throw BrainFlowException ("failed to get board info", res);
310 }
311 std::string data (board_descr_str, 0, string_len);
312 return json::parse (data);
313}
314
315int BoardShim::get_sampling_rate (int board_id, int preset)
316{

Callers

nothing calls this directly

Calls 2

BrainFlowExceptionClass · 0.85
get_board_descrFunction · 0.50

Tested by

no test coverage detected