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

Method getBatteryChannel

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

Source from the content-addressed store, hash-verified

440 }
441
442 public static getBatteryChannel(
443 boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): number
444 {
445 const value = [0];
446 const res = BoardControllerDLL.getInstance().getBatteryChannel(boardId, preset, value);
447 if (res !== BrainFlowExitCodes.STATUS_OK)
448 {
449 throw new BrainFlowError (res, 'Could not get such data from this device');
450 }
451 return value[0];
452 }
453
454 public static getSamplingRate(
455 boardId: BoardIds, preset = BrainFlowPresets.DEFAULT_PRESET): number

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected