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

Method get_board_sampling_rate

src/board_controller/inc/board.h:56–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

whatMethod · 0.80

Tested by

no test coverage detected