| 299 | ////////////////////////////////////////// |
| 300 | |
| 301 | json 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 | |
| 315 | int BoardShim::get_sampling_rate (int board_id, int preset) |
| 316 | { |
nothing calls this directly
no test coverage detected