Comparing version 5.10.2 to 5.11.0
@@ -23,2 +23,3 @@ import { BoardIds, BrainFlowPresets, IBrainFlowInputParams, LogLevels } from './brainflow.types'; | ||
configBoard(config: string): string; | ||
configBoardWithBytes(config: string, len: number): void; | ||
getBoardDataCount(preset?: BrainFlowPresets): number; | ||
@@ -25,0 +26,0 @@ getBoardData(numSamples?: number, preset?: BrainFlowPresets): number[][]; |
@@ -76,2 +76,3 @@ "use strict"; | ||
this.configBoard = this.lib.func(functions_types_1.BoardControllerCLikeFunctions.config_board); | ||
this.configBoardWithBytes = this.lib.func(functions_types_1.BoardControllerCLikeFunctions.config_board_with_bytes); | ||
this.getBoardDataCount = this.lib.func(functions_types_1.BoardControllerCLikeFunctions.get_board_data_count); | ||
@@ -231,2 +232,8 @@ this.getBoardData = this.lib.func(functions_types_1.BoardControllerCLikeFunctions.get_board_data); | ||
} | ||
configBoardWithBytes(config, len) { | ||
const res = BoardControllerDLL.getInstance().configBoardWithBytes(config, len, this.boardId, this.inputJson); | ||
if (res !== brainflow_types_1.BrainFlowExitCodes.STATUS_OK) { | ||
throw new brainflow_types_1.BrainFlowError(res, 'Could not config board with bytes'); | ||
} | ||
} | ||
getBoardDataCount(preset = brainflow_types_1.BrainFlowPresets.DEFAULT_PRESET) { | ||
@@ -233,0 +240,0 @@ const dataSize = [0]; |
@@ -14,2 +14,3 @@ import { AggOperations, BoardIds, BrainFlowExitCodes, BrainFlowPresets, FilterTypes, LogLevels, NoiseEstimationLevelTypes, NoiseTypes, ThresholdTypes, WaveletDenoisingTypes, WaveletExtensionTypes, WaveletTypes, WindowOperations } from './brainflow.types'; | ||
config_board = "int config_board (const char *config, _Inout_ char *response, _Inout_ int *resp_len, int board_id, const char *json_brainflow_input_params)", | ||
config_board_with_bytes = "int config_board_with_bytes (const char *bytes, int len, int board_id, const char *json_brainflow_input_params)", | ||
delete_streamer = "int delete_streamer (const char *streamer, int preset, int board_id, const char *json_brainflow_input_params)", | ||
@@ -62,2 +63,3 @@ insert_marker = "int insert_marker (double value, int preset, int board_id, const char *json_brainflow_input_params)", | ||
configBoard: (config: string, response: string[], responseLen: number[], boardId: BoardIds, inputJson: string) => BrainFlowExitCodes; | ||
configBoardWithBytes: (config: string, len: number, boardId: BoardIds, inputJson: string) => BrainFlowExitCodes; | ||
getBoardDataCount: (preset: BrainFlowPresets, dataSize: number[], boardId: BoardIds, inputJson: string) => BrainFlowExitCodes; | ||
@@ -64,0 +66,0 @@ getBoardData: (dataSize: number, preset: BrainFlowPresets, dataArr: number[], boardId: BoardIds, inputJson: string) => BrainFlowExitCodes; |
@@ -17,2 +17,3 @@ "use strict"; | ||
BoardControllerCLikeFunctions["config_board"] = "int config_board (const char *config, _Inout_ char *response, _Inout_ int *resp_len, int board_id, const char *json_brainflow_input_params)"; | ||
BoardControllerCLikeFunctions["config_board_with_bytes"] = "int config_board_with_bytes (const char *bytes, int len, int board_id, const char *json_brainflow_input_params)"; | ||
BoardControllerCLikeFunctions["delete_streamer"] = "int delete_streamer (const char *streamer, int preset, int board_id, const char *json_brainflow_input_params)"; | ||
@@ -19,0 +20,0 @@ BoardControllerCLikeFunctions["insert_marker"] = "int insert_marker (double value, int preset, int board_id, const char *json_brainflow_input_params)"; |
{ | ||
"name": "brainflow", | ||
"version": "5.10.2", | ||
"version": "5.11.0", | ||
"description": "JS Binding for BrainFlow", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90245361
2092