| 54 | virtual int release_session () = 0; |
| 55 | virtual int config_board (std::string config, std::string &response) = 0; |
| 56 | virtual int get_board_sampling_rate (int preset) |
| 57 | { |
| 58 | try |
| 59 | { |
| 60 | return board_descr.at (preset_to_string (preset)).at ("sampling_rate").get<int> (); |
| 61 | } |
| 62 | catch (json::exception &e) |
| 63 | { |
| 64 | safe_logger (spdlog::level::err, e.what ()); |
| 65 | } |
| 66 | return -1; |
| 67 | } |
| 68 | |
| 69 | // some devices may implement it but there is no requirement to have this method and we do not |
| 70 | // recommend anybody to use it |