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

Method preset_to_int

src/board_controller/board.cpp:521–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521int Board::preset_to_int (std::string preset)
522{
523 if (preset == "default")
524 {
525 return (int)BrainFlowPresets::DEFAULT_PRESET;
526 }
527 else if (preset == "auxiliary")
528 {
529 return (int)BrainFlowPresets::AUXILIARY_PRESET;
530 }
531 else if (preset == "ancillary")
532 {
533 return (int)BrainFlowPresets::ANCILLARY_PRESET;
534 }
535
536 return (int)BrainFlowPresets::DEFAULT_PRESET;
537}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected