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

Method getBoardDescr

nodejs_package/brainflow/board_shim.ts:729–740  ·  view source on GitHub ↗
(boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET)

Source from the content-addressed store, hash-verified

727 }
728
729 public static getBoardDescr(boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): Object
730 {
731 const len = [0];
732 let out = ['\0'.repeat(16000)];
733 const res =
734 BoardControllerDLL.getInstance().getBoardDescr(boardId, preset, out, len, out[0].length);
735 if (res !== BrainFlowExitCodes.STATUS_OK)
736 {
737 throw new BrainFlowError (res, 'Could not get device info');
738 }
739 return JSON.parse(out[0].substring(0, len[0]));
740 }
741}

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected