protected void OnIfDataRecieved(IfCallbackArgs ifData) { if (IfDataRecieved != null) { IfDataRecieved(this, ifData); } }
private void IfCallback(IntPtr buffer, uint numberOfSamples, ushort maxAdcAmplitude, uint adcSamplingRate, uint userData) { var bytes = numberOfSamples * 2; var data = CopyArrayByte(buffer, bytes); var ifData = new IfCallbackArgs(maxAdcAmplitude, adcSamplingRate, data); OnIfDataRecieved(ifData); }