| 51 | } |
| 52 | |
| 53 | class BoardControllerDLL extends BoardControllerFunctions |
| 54 | { |
| 55 | private static instance: BoardControllerDLL; |
| 56 | |
| 57 | private libPath: string; |
| 58 | private dllPath: string; |
| 59 | private lib: koffi.IKoffiLib; |
| 60 | |
| 61 | private constructor() |
| 62 | { |
| 63 | super (); |
| 64 | this.libPath = resolveLibPath(); |
| 65 | this.dllPath = this.getDLLPath(); |
| 66 | this.lib = this.getLib(); |
| 67 | |
| 68 | this.isPrepared = this.lib.func(CLike.is_prepared); |
| 69 | this.prepareSession = this.lib.func(CLike.prepare_session); |
| 70 | this.startStream = this.lib.func(CLike.start_stream); |
| 71 | this.configBoard = this.lib.func(CLike.config_board); |
| 72 | this.configBoardWithBytes = this.lib.func(CLike.config_board_with_bytes); |
| 73 | this.getBoardDataCount = this.lib.func(CLike.get_board_data_count); |
| 74 | this.getBoardData = this.lib.func(CLike.get_board_data); |
| 75 | this.getCurrentBoardData = this.lib.func(CLike.get_current_board_data); |
| 76 | this.getNumRows = this.lib.func(CLike.get_num_rows); |
| 77 | this.releaseAllSessions = this.lib.func(CLike.release_all_sessions); |
| 78 | this.releaseSession = this.lib.func(CLike.release_session); |
| 79 | this.stopStream = this.lib.func(CLike.stop_stream); |
| 80 | this.getSamplingRate = this.lib.func(CLike.get_sampling_rate); |
| 81 | this.getBoardSamplingRate = this.lib.func(CLike.get_board_sampling_rate); |
| 82 | this.getPackageNumChannel = this.lib.func(CLike.get_package_num_channel); |
| 83 | this.getTimestampChannel = this.lib.func(CLike.get_timestamp_channel); |
| 84 | this.getMarkerChannel = this.lib.func(CLike.get_marker_channel); |
| 85 | this.getBatteryChannel = this.lib.func(CLike.get_battery_channel); |
| 86 | this.getEegChannels = this.lib.func(CLike.get_eeg_channels); |
| 87 | this.getExgChannels = this.lib.func(CLike.get_exg_channels); |
| 88 | this.getEmgChannels = this.lib.func(CLike.get_emg_channels); |
| 89 | this.getEogChannels = this.lib.func(CLike.get_eog_channels); |
| 90 | this.getEcgChannels = this.lib.func(CLike.get_ecg_channels); |
| 91 | this.getPpgChannels = this.lib.func(CLike.get_ppg_channels); |
| 92 | this.getOpticalChannels = this.lib.func(CLike.get_optical_channels); |
| 93 | this.getEdaChannels = this.lib.func(CLike.get_eda_channels); |
| 94 | this.getAccelChannels = this.lib.func(CLike.get_accel_channels); |
| 95 | this.getRotationChannels = this.lib.func(CLike.get_rotation_channels); |
| 96 | this.getAnalogChannels = this.lib.func(CLike.get_analog_channels); |
| 97 | this.getGyroChannels = this.lib.func(CLike.get_gyro_channels); |
| 98 | this.getOtherChannels = this.lib.func(CLike.get_other_channels); |
| 99 | this.getTemperatureChannels = this.lib.func(CLike.get_temperature_channels); |
| 100 | this.getResistanceChannels = this.lib.func(CLike.get_resistance_channels); |
| 101 | this.getMagnetometerChannels = this.lib.func(CLike.get_magnetometer_channels); |
| 102 | this.addStreamer = this.lib.func(CLike.add_streamer); |
| 103 | this.deleteStreamer = this.lib.func(CLike.delete_streamer); |
| 104 | this.insertMarker = this.lib.func(CLike.insert_marker); |
| 105 | this.setLogLevelBoardController = this.lib.func(CLike.set_log_level_board_controller); |
| 106 | this.setLogFileBoardController = this.lib.func(CLike.set_log_file_board_controller); |
| 107 | this.logMessageBoardController = this.lib.func(CLike.log_message_board_controller); |
| 108 | this.getVersionBoardController = this.lib.func(CLike.get_version_board_controller); |
| 109 | this.getDeviceName = this.lib.func(CLike.get_device_name); |
| 110 | this.getBoardPresets = this.lib.func(CLike.get_board_presets); |
nothing calls this directly
no outgoing calls
no test coverage detected