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

Method getBoardPresets

nodejs_package/brainflow/board_shim.ts:691–701  ·  view source on GitHub ↗
(boardId: BoardIds)

Source from the content-addressed store, hash-verified

689 }
690
691 public static getBoardPresets(boardId: BoardIds): number[]
692 {
693 const len = [0];
694 const presets = [...new Array (512).fill(0)];
695 const res = BoardControllerDLL.getInstance().getBoardPresets(boardId, presets, len);
696 if (res !== BrainFlowExitCodes.STATUS_OK)
697 {
698 throw new BrainFlowError (res, 'Could not get board info');
699 }
700 return presets.slice(0, len[0]);
701 }
702
703 public static getDeviceName(boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): string
704 {

Callers

nothing calls this directly

Calls 2

fillMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected