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

Method get_magnetometer_channels

cpp_package/src/board_shim.cpp:607–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607std::vector<int> BoardShim::get_magnetometer_channels (int board_id, int preset)
608{
609 int channels[MAX_CHANNELS];
610 int len = 0;
611 int res = ::get_magnetometer_channels (board_id, preset, channels, &len);
612 if (res != (int)BrainFlowExitCodes::STATUS_OK)
613 {
614 throw BrainFlowException ("failed to get board info", res);
615 }
616 return std::vector<int> (channels, channels + len);
617}
618
619std::string BoardShim::get_version ()
620{

Callers

nothing calls this directly

Calls 2

BrainFlowExceptionClass · 0.85

Tested by

no test coverage detected